add script to more conveniently start pgbot

This commit is contained in:
Von Random 2024-08-10 04:51:43 +03:00
parent c65787b6bd
commit 836a72fa8e
2 changed files with 10 additions and 0 deletions

1
pgbot
View file

@ -53,4 +53,5 @@ def main():
if __name__ == '__main__':
print("Starting pgbot...")
main()

9
start.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
export TZ=Europe/Moscow
[[ -d .venv ]] || {
python -m venv .venv
}
source .venv/bin/activate
pip install --upgrade pip
pip install --upgrade bs4 fake_headers psycopg pyyaml requests schedule telethon
exec ./pgbot