Replit python discord bot offline

Hey all,

I was following Beau’s YT tutorial on making a bot and my bot went offline after a few hours. Everything was running great and I was pausing for 20-30 minutes between and checking and the bot was online but I went away for an evening and came back and now the bot is not working. I am getting a gigantic error code and I don’t know how to make sense of it. Has anyone experienced this before and can help me with where I should be looking? Thanks in advance!!!

Here is the error code:

2022-10-24 20:47:57 INFO discord.client logging in using static token

  • Serving Flask app ‘’
  • Debug mode: off
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:8080
  • Running on http://172.18.0.7:8080
    Press CTRL+C to quit
    Traceback (most recent call last):
    File “main.py”, line 50, in
    client.run(my_secret)
    File “/home/runner/Encourage-Bot/venv/lib/python3.8/site-packages/discord/client.py”, line 828, in run
    asyncio.run(runner())
    File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/runners.py”, line 44, in run
    return loop.run_until_complete(main)
    File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/base_events.py”, line 616, in run_until_complete
    return future.result()
    File “/home/runner/Encourage-Bot/venv/lib/python3.8/site-packages/discord/client.py”, line 817, in runner
    await self.start(token, reconnect=reconnect)
    File “/home/runner/Encourage-Bot/venv/lib/python3.8/site-packages/discord/client.py”, line 745, in start
    await self.login(token)
    File “/home/runner/Encourage-Bot/venv/lib/python3.8/site-packages/discord/client.py”, line 580, in login
    data = await self.http.static_login(token)
    File “/home/runner/Encourage-Bot/venv/lib/python3.8/site-packages/discord/http.py”, line 801, in static_login
    data = await self.request(Route(‘GET’, ‘/users/@me’))
    File “/home/runner/Encourage-Bot/venv/lib/python3.8/site-packages/discord/http.py”, line 680, in request
    raise HTTPException(response, data)
    discord.errors.HTTPException: 429 Too Many Requests (error code: 0):
Access denied | discord.com used Cloudflare to restrict access
Please enable cookies.

Error 1015

Ray ID: 75f5920f28ee2abe • 2022-10-24 20:47:57 UTC

You are being rate limited

  <section class="w-240 lg:w-full mx-auto mb-8 lg:px-8">
      <div id="what-happened-section" class="w-1/2 md:w-full">
        <h2 class="text-3xl leading-tight font-normal mb-4 text-black-dark antialiased" data-translate="what_happened">What happened?</h2>
        <p>The owner of this website (discord.com) has banned you temporarily from accessing this website.</p>
        
      </div>

      
  </section>

  <div class="feedback-hidden py-8 text-center" id="error-feedback">
<div id="error-feedback-survey" class="footer-line-wrapper">
    Was this page helpful?
    <button class="border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded" id="feedback-button-yes" type="button">Yes</button>
    <button class="border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded" id="feedback-button-no" type="button">No</button>
</div>
<div class="feedback-success feedback-hidden" id="error-feedback-success">
    Thank you for your feedback!
</div>
  <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">

Cloudflare Ray ID: 75f5920f28ee2abe Your IP: Click to reveal 104.155.181.167 Performance & security by Cloudflare

</div><!-- /#cf-error-details -->

 172.18.0.1 - - [24/Oct/2022 20:47:57] “GET / HTTP/1.1” 200 -

Replit uses shared IPs for projects - unfortunately, sometimes bad actors use a repl to spam Discord, and the shared IP gets ratelimited.