To keep your repl.it bot online 24/7 you have to do 3 things : 1. To keep our bot alive we have to add the following code on the head of our py file: return "Your Bot Is Ready". app.run(host="0.0.0.0", port=8000) server = Thread(target=run) server.start() 2. Adding a background task : More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.