1
0

update start script, readme

This commit is contained in:
Akbar Rahman 2021-03-19 14:32:40 +00:00
parent c5358f4050
commit aae03b51ee
3 changed files with 19 additions and 4 deletions

5
.gitignore vendored
View File

@ -1,7 +1,4 @@
config.json
tasks.json
db.json
config
env
__pycache__
start.sh
*.swp

View File

@ -3,3 +3,14 @@
under heavy development
you must have a redis server installed
## running
1. `python3 -m venv env`
1. Create `config` file:
```bash
TOKEN="telegram bot token from bot father"
```
1. `bash start.sh`

7
start.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source config
# source env if not in docker container
[[ `grep 'docker' /proc/self/cgroup` ]] && source env/bin/activate
python src/bot.py "$TOKEN"