mirror of
https://github.com/Floriansylvain/Risitas_BOT.git
synced 2026-10-18 20:54:11 +02:00
🩹 - Quick fix for on_command_error()
This commit is contained in:
1 parent
9e1e974daa
commit
0671fa5041
1 file changed
+2
-1
+2
-1
@@ -22,7 +22,8 @@ async def on_ready():
|
||||
|
||||
@bot.event
|
||||
async def on_command_error(ctx, error):
|
||||
print(datetime.now().strftime("[%H:%M:%S]") + ' \'' + str(error) + '\' from ' + str(ctx.author) + ' on ' + ctx.message.guild.name + '.')
|
||||
print(datetime.now().strftime("[%H:%M:%S]") + ' \'' + str(error) + '\' from ' +str(ctx.author) +
|
||||
' on ' + (ctx.message.guild.name if ctx.message.guild is not None else 'DMs') + '.')
|
||||
if isinstance(error, commands.CommandNotFound):
|
||||
await ctx.send(spellchecker(str(ctx.message.content)[1:]))
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user