19 lines
285 B
Python
19 lines
285 B
Python
import logging
|
|
import sys
|
|
|
|
import main
|
|
from helpers import jokes
|
|
import settings
|
|
|
|
|
|
arg = sys.argv[-1]
|
|
settings.setup()
|
|
if arg == "poll":
|
|
jokes.poll_jokes()
|
|
elif arg == "api":
|
|
main.run()
|
|
elif arg == "bot":
|
|
main.bot()
|
|
else:
|
|
raise NotImplementedError("No arg specified!")
|