I cant make my discord bot go online!

Hi there.
I just tried to make a discord bot with this video Code a Discord Bot with Python - Host for Free in the Cloud - YouTube
However, when I try to run it, it says this:
Traceback (most recent call last):
File “main.py”, line 18, in
client.run(os.getenv(‘TOKEN’))
File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py”, line 718, in run
return future.result()
File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py”, line 697, in runner
await self.start(*args, **kwargs)
File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py”, line 660, in start
await self.login(*args, bot=bot)
File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py”, line 509, in login
await self.http.static_login(token.strip(), bot=bot)
File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py”, line 293, in static_login
data = await self.request(Route(‘GET’, ‘/users/@me’))
File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py”, line 209, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 429 Too Many Requests (error code: 0): You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently. Please read our docs at Discord Developer Portal to prevent this moving forward.

I followed every step he made and copied it so it is the exact same. why does it not work?

I think this is a pretty important thing to read

but what’s your code?

Send the code here and then we’ll see

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.