diff options
Diffstat (limited to 'bot/tasks.py')
-rw-r--r-- | bot/tasks.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bot/tasks.py b/bot/tasks.py new file mode 100644 index 0000000..67332d2 --- /dev/null +++ b/bot/tasks.py @@ -0,0 +1,23 @@ +from ._bs.config import prompt_missing_configs +from ._bs.default_tasks import install_requirements, run_bot, install_systemd +from ._bs.load import load +from ._bs.tasks import task + + +@task('run') +def run(): + run_bot() + + +@task('install') +def install(): + install_requirements() + prompt_missing_configs() + install_systemd() + + +@task('configurate') +@task('config') +def config(): + load('config') + prompt_missing_configs() |