diff --git a/BotOps/_run.sh b/BotOps/_run.sh new file mode 100755 index 0000000..07b7b90 --- /dev/null +++ b/BotOps/_run.sh @@ -0,0 +1,4 @@ +#!/bin/bash +cd "$(dirname "$0")" || exit +source venv/bin/activate +exec python3 app.py $@ diff --git a/BotOps/_set.sh b/BotOps/_set.sh new file mode 100755 index 0000000..c7a534e --- /dev/null +++ b/BotOps/_set.sh @@ -0,0 +1,5 @@ +#!/bin/bash +cd "$(dirname "$0")" || exit +python3 -m venv venv +source venv/bin/activate +pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple