def main(): Bot.load() bot = Bot_Template() try: import waitress waitress.serve(bot.application) finally: bot.close()