pawel02 / music_bot

Music discord bot with all the functionality you'll ever want
67 stars 91 forks source link

Bot not responding to my commands #14

Open romandeh opened 1 year ago

romandeh commented 1 year ago

I started the bot, but none of the commands are recognized, throwing this messages in the console.

C:\Users\roman\Desktop\music_bot-main\main.py:15: RuntimeWarning: coroutine 'BotBase.add_cog' was never awaited
  bot.add_cog(help_cog(bot))
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
C:\Users\roman\Desktop\music_bot-main\main.py:16: RuntimeWarning: coroutine 'BotBase.add_cog' was never awaited
  bot.add_cog(music_cog(bot))
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
[2023-02-08 02:43:21] [INFO    ] discord.client: logging in using static token
[2023-02-08 02:43:22] [INFO    ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 7c8c0489dbc8e8c9bffdd65f1b5b4a68).
[2023-02-08 02:43:26] [ERROR   ] discord.ext.commands.bot: Ignoring exception in command None
discord.ext.commands.errors.CommandNotFound: Command "help" is not found
MateoGraviFiorino commented 1 year ago

Same problem here! I couldn't solve it yet discord.ext.commands.errors.CommandNotFound: Command "help" is not found

George-Allegedly commented 1 year ago

I had the same issue - you need to change how you load the cogs. change it to this in main.py:

@bot.event async def on_ready(): await bot.add_cog(music_cog(bot)) await bot.add_cog(help_cog(bot))