initial
This commit is contained in:
19
entrypoint.py
Normal file
19
entrypoint.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import sys
|
||||
|
||||
from daemons.bot import bot
|
||||
from daemons.fetch import fetch
|
||||
from daemons.notify import notify
|
||||
|
||||
arg = sys.argv[-1]
|
||||
|
||||
if arg == "bot":
|
||||
print("bot is starting")
|
||||
bot.polling()
|
||||
elif arg == "fetch":
|
||||
print("fetch is starting")
|
||||
fetch()
|
||||
elif arg == "notify":
|
||||
print("notify is starting")
|
||||
notify()
|
||||
else:
|
||||
raise ValueError(f"Unknown param {arg}")
|
||||
Reference in New Issue
Block a user