Bot is not finding file and says runtimewarning

Oh, there’s a typo
Change this

logging.info(f'Logged in as {bot.user.name} (ID: {bot.userID})')

To this:

logging.info(f'Logged in as {bot.user.name} (ID: {bot.user.id})')

Don’t worry, programming is a proccess of trial and error.

@WindLother what is next step?

Can you invite me to your repl?

Done! I invited guy whos name is @WindLother and same pfp than you

I think is working now…

I stupidily forgot that add_cog is now a coroutine and had problems with that.

An error occurred: Command raised an exception: AttributeError: ‘ClientUser’ object has no attribute ‘avatar_url’

This error in help message. Can you please fix it if you have time? Other commands working well! Thanks for that🤩

According to the docs, avatar_url was changed to avatar.url

But I already made that change.

In your help.py code, you can try change the avatar session from:

if self.bot.user:
              embed.set_thumbnail(url=self.bot.user.avatar.url)

To

if self.bot.user:
              embed.set_thumbnail(url=str(self.bot.user.avatar.url)) #just add the str
1 Like

EveryThing works now, thanks

Hey @finnishdev!

Please mark whichever one of @WindLother’s responses you found most helpful as the solution so people with the same issue can easily find the solution.

I did make the extensions being imported manually to test the code (as a workround), so I recommend that in the future you change this too. (AKA keep improving your code)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.