mxyng / discollama

Run an AI-powered Discord bot from the comfort of your laptop.
MIT License
129 stars 22 forks source link

Bug on install using poetry #1

Closed Josephrp closed 1 year ago

Josephrp commented 1 year ago

File "/root/.cache/pypoetry/virtualenvs/discollama-gIPUCJZT-py3.11/lib/python3.11/site-packages/discord/client.py", line 849, in runner await self.start(token, reconnect=reconnect) File "/root/.cache/pypoetry/virtualenvs/discollama-gIPUCJZT-py3.11/lib/python3.11/site-packages/discord/client.py", line 777, in start await self.login(token) File "/root/.cache/pypoetry/virtualenvs/discollama-gIPUCJZT-py3.11/lib/python3.11/site-packages/discord/client.py", line 609, in login raise TypeError(f'expected token to be a str, received {token.__class__.__name__} instead') TypeError: expected token to be a str, received NoneType instead any ideas how to resolve this are much appreciated.

mxyng commented 1 year ago

This is an error when discollama starts without DISCORD_TOKEN set to a valid value. Details are in a note in the README