discord.py: Bot Cant Run
Summary
The bot can’t run
Reproduction Steps
Expected Results
the bot gets on
Actual Results
The bot can’t run
Traceback (most recent call last):
File "/Users/(personal info you do not need to know)/main.py", line 34, in <module>
client.run("my bot token")
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/discord/client.py", line 678, in run
return future.result()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/discord/client.py", line 658, in runner
await self.start(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/discord/client.py", line 621, in start
await self.login(*args, bot=bot)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/discord/client.py", line 472, in login
await self.http.static_login(token.strip(), bot=bot)
AttributeError: 'NoneType' object has no attribute 'strip'
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
System Information
latest version of python and discord.py macOS Catalina
I can’t join servers not owned by someone I know
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 24 (9 by maintainers)
where do I pass
None?client.run("my bot token")Isn’t your actual code.Again, this question should be asked in the dpy guild.
don’t necrobump old issues. as said in the comments to the original issue, this issue tracker is not the place for general questions. consider joining the guild or creating a discussion instead.