aboutsummaryrefslogtreecommitdiff
path: root/bot/tasks.py
diff options
context:
space:
mode:
authorRoman Gräf <romangraef@loves.dicksinhisan.us>2020-09-05 23:19:39 +0200
committerRoman Gräf <romangraef@loves.dicksinhisan.us>2020-09-05 23:19:39 +0200
commit2b10e99265f816f34e8530bac6b88a4ebf05b7f7 (patch)
tree1fcfc6edc27a646f6b1323505365f160e52968c9 /bot/tasks.py
downloaddiscord-bootstrap-2b10e99265f816f34e8530bac6b88a4ebf05b7f7.tar.gz
discord-bootstrap-2b10e99265f816f34e8530bac6b88a4ebf05b7f7.tar.bz2
discord-bootstrap-2b10e99265f816f34e8530bac6b88a4ebf05b7f7.zip
Initial commitHEADmaster
Diffstat (limited to 'bot/tasks.py')
-rw-r--r--bot/tasks.py23
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()