-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Description
Summary
I am trying to get a discord bot to work, so I got round a bunch of Linux issues, and finally managed to get everything in place and I get loads of errors.
Reproduction Steps
harry@debian:~/Code/Python$ python3.8 Bot.py
(Screenshots show the python code)
Expected Results
The code to run.
Actual Results
Traceback (most recent call last):
File "Bot.py", line 15, in
client.run(TOKEN)
File "/home/harry/.local/lib/python3.8/site-packages/discord/client.py", line 678, in run
return future.result()
File "/home/harry/.local/lib/python3.8/site-packages/discord/client.py", line 658, in runner
await self.start(*args, **kwargs)
File "/home/harry/.local/lib/python3.8/site-packages/discord/client.py", line 621, in start
await self.login(*args, bot=bot)
File "/home/harry/.local/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
- [ x] I have searched the open issues for duplicates.
- [ x] I have shown the entire traceback, if possible.
- [ x] I have removed my token from display, if visible.
System Information
harry@debian:~/Code/Python$ python3.8 -m discord -v
- Python v3.8.5-final
- discord.py v1.4.1-final
- aiohttp v3.6.2
- system info: Linux 4.19.0-10-amd64 Fix issue with author changing type #1 SMP Debian 4.19.132-1 (2020-07-24)
harry@debian:~/Code/Python$