I’m getting an error when trying to run the bot.py
script:
raise KeyError(key) from None
KeyError: 'DISCORD_TOKEN'
I’m unable to connect my Discord bot to the server. I have a .env
file in the same directory as the bot.py
script, but when I try to run it I’m getting the following error:
KeyError: 'DISCORD_TOKEN'
Has anyone run into this issue before or have any ideas on how to fix it?