Advertisement
kilon

discord bot error

Feb 8th, 2017
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. ~ $ python3 discordbot.py
  2. Traceback (most recent call last):
  3. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/http.py", line 269, in static_login
  4. data = yield from self.request(Route('GET', '/users/@me'))
  5. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/http.py", line 211, in request
  6. raise HTTPException(r, data)
  7. discord.errors.HTTPException: UNAUTHORIZED (status code: 401): 401: Unauthorized
  8.  
  9. The above exception was the direct cause of the following exception:
  10.  
  11. Traceback (most recent call last):
  12. File "discordbot.py", line 63, in <module>
  13. bot.run('token')
  14. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 519, in run
  15. self.loop.run_until_complete(self.start(*args, **kwargs))
  16. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 466, in run_until_complete
  17. return future.result()
  18. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 490, in start
  19. yield from self.login(*args, **kwargs)
  20. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 416, in login
  21. yield from getattr(self, '_login_' + str(n))(*args, **kwargs)
  22. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 346, in _login_1
  23. data = yield from self.http.static_login(token, bot=is_bot)
  24. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/http.py", line 273, in static_login
  25. raise LoginFailure('Improper token has been passed.') from e
  26. discord.errors.LoginFailure: Improper token has been passed.
  27. Unclosed client session
  28. client_session: <aiohttp.client.ClientSession object at 0x10373a6d8>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement