need to make my discord bot stay up
In short, i need my discord bot to stay up and running, even if the tab has closed, or my computer is off. Its a simple information bot that doesnt do much at the moment. The repl uses Python.
(Im really new to repl.it, so please dont comment on my simple coding)
I would make a http server (request) and use uptimerobot to ping the .co link
def run(server_class=HTTPServer, handler_class=BaseHTTPRequestHandler): server_address = ('', 8000) httpd = server_class(server_address, handler_class) httpd.serve_forever()