I'm making an 8ball command, but python won't let me add a number to the command. What I want to make:
@client.command() async def 8ball(ctx, args): #code here
Error:
File "main.py", line 631 async def 8ball(ctx, args=None): ^ SyntaxError: invalid syntax
Can someone help me? Thanks in advance
You can use Aliases. Aliases can be thought of as other names the command can be called through.
@client.command(aliases=['8ball']) async def _8ball(ctx, args): #code here
1.4m articles
1.4m replys
5 comments
57.0k users