Add irc_runner.py
This commit is contained in:
parent
0317e40264
commit
fdeab05e3a
|
@ -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
|
Loading…
Reference in New Issue