aboutsummaryrefslogtreecommitdiff
path: root/bot/tasks.py
blob: 67332d2b5f55349e33040a5826004d0bb44663ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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()