[Run] For running the bot

Also makes a virtual enviroment on $PWD/env
Author:     Julian Marcos <jmjl@tilde.club>
This commit is contained in:
Julian Marcos 2021-12-19 13:54:05 +01:00 committed by Julian Jarabo
parent 150ca60dcf
commit 8b91520652
No known key found for this signature in database
GPG Key ID: 937CED0727240E4A
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
__pycache__
.*un~
*un~
env

6
run.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
cd "$(dirname "$0")"
setup_bot() { python3 -m venv "$PWD/env" && "$PWD"/env/bin/pip install -r requirements.txt; };
[ ! -d "$PWD/env" ] && setup_bot
exec "$PWD"/env/bin/python "$PWD"/bot.py