aboutsummaryrefslogtreecommitdiff
path: root/bot/_bs/default_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/_bs/default_tasks.py
downloaddiscord-bootstrap-2b10e99265f816f34e8530bac6b88a4ebf05b7f7.tar.gz
discord-bootstrap-2b10e99265f816f34e8530bac6b88a4ebf05b7f7.tar.bz2
discord-bootstrap-2b10e99265f816f34e8530bac6b88a4ebf05b7f7.zip
Initial commitHEADmaster
Diffstat (limited to 'bot/_bs/default_tasks.py')
-rw-r--r--bot/_bs/default_tasks.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/bot/_bs/default_tasks.py b/bot/_bs/default_tasks.py
new file mode 100644
index 0000000..b17aefa
--- /dev/null
+++ b/bot/_bs/default_tasks.py
@@ -0,0 +1,16 @@
+import sys
+from subprocess import call
+
+from .load import load
+from .systemd import install_systemd
+
+
+def install_requirements():
+ call([sys.executable, '-m', 'pip', '-r', 'requirements.txt'])
+
+
+def run_bot():
+ load('bot').main()
+
+
+__all__ = ['run_bot', 'install_systemd', 'install_requirements']