#AttributeError: 'Bot' object has no attribute 'add_command'

1 messages · Page 1 of 1 (latest)

inner ivy
#

?tag requests

versed steepleBOT
#

Why you should not use the requests library for your bot
requests is a popular HTTP library for Python. It is however not a good option for Discord bots, since it is not async and blocking.

This essentially means that your bot will not be able to execute any code at all while a request is happening. Since requests usually take a few seconds to complete, this can have a detrimental effect on your bot's performance. E.g if a user executes a command that performs a request taking 5 seconds to complete, no one else will be able to use your bot for those 5 seconds.

Please look at using a HTTP library that has async support, such as aiohttp or httpx

woeful ice
#

can you run python -m pip list in a cmd and send the output here

inner ivy
#

why?

woeful ice
#

can you still just do that

#

can you show your main file as well, where you run the bot from

#

p sure messages is in default anyway

inner ivy
#

why do you want to check the folder?

#

just do it at the terminal at your IDE

woeful ice
#

can you try reinstalling py-cord

#

just uninstall and reinstall

wintry mountain
#

commands.Bot, not discord.Bot

#

though, your verify cog contradicts this; if you intend to make a slash command, you should change @commands.command to @discord.slash_command