discord.py aliases
@commands.command(name='test', aliases=['testcommand', 'testing'])
async def test(self, ctx):
await ctx.send("This a test command")
#will run with either 'test, testcommand or testing
discord.py aliases
@commands.command(name='test', aliases=['testcommand', 'testing'])
async def test(self, ctx):
await ctx.send("This a test command")
#will run with either 'test, testcommand or testing
discord.py cog
from discord.ext import commands
class Ping(commands.Cog):
"""Receives ping commands"""
@commands.command()
async def ping(self, ctx: commands.Context):
await ctx.send("Pong")
def setup(bot: commands.Bot):
bot.add_cog(Ping())
discord.py cog classes
class Test(commands.cog):
def __init__(self, client):
self.client = client
self._last_member = None
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us