From fdeab05e3a4a205c6ee67a0b1d3bc82b6b18d9a1 Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Sun, 18 May 2025 16:54:46 -0500 Subject: [PATCH] Add irc_runner.py --- irc_runner.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 irc_runner.py diff --git a/irc_runner.py b/irc_runner.py new file mode 100644 index 0000000..bdaa818 --- /dev/null +++ b/irc_runner.py @@ -0,0 +1,12 @@ +# Minimail file just to run the bot +## this sets the bot scope to work with all gunicorn workers + +import time +from irc_bot import bot + +if __name__ == "__main__": + print("[IRC BOT] Starting standalone bot process...") + bot.connect() + bot.start() + while True: + time.sleep(60) # keep the main thread alive \ No newline at end of file