Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

discord bot python

from nextcord.ext import commands

bot = commands.Bot(command_prefix='$')

@bot.command()
async def test(ctx):
    pass

# or:

@commands.command()
async def test(ctx):
    pass

bot.add_command(test)
Source by docs.nextcord.dev #
 
PREVIOUS NEXT
Tagged: #discord #bot #python
ADD COMMENT
Topic
Name
8+4 =