Skip to content

Bugged code? Im not 100% sure... #5846

@jumpy72red

Description

@jumpy72red

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'

Screenshot from 2020-09-23 18-27-31
Screenshot from 2020-09-23 18-27-52

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$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis is a bug with the library.invalidThis is not right.questionThis is a question about the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions