1
0
Fork 0

Add irc_runner.py

This commit is contained in:
Eric Lay 2025-05-18 16:54:46 -05:00
parent 0317e40264
commit fdeab05e3a
1 changed files with 12 additions and 0 deletions

12
irc_runner.py Normal file
View File

@ -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