Before running this bot you should create Google sheet table and set in A-L columns text "9:00" "10:00" etc.
-
Clone this repo
git clone https://github.com/TechDepSut/gutspacebot.git
-
Create virtual environment
-
For Windows:
python -m venv .venv
-
For Linux, MacOS:
python3 -m venv .venv
-
-
Activate virtual environment
-
For Windows:
.\.venv\Scripts\activate
-
For Linux, MacOS:
source ./.venv/bin/activate
-
-
Install requirements
-
For Windows:
pip install -r requirements.txt
-
For Linux, MacOS:
pip3 install -r requirements.txt
-
-
Setting environment variables
-
For Windows:
-
Powershell:
$env:token="TOKEN_TO_YOUR_BOT";
$env:service_file="SERVICE_FILE_FOR_GOOGLE_API";
-
cmd:
set token=TOKEN_TO_YOUR_BOT
set service_file="SERVICE_FILE_FOR_GOOGLE_API"
-
-
For Linux, MacOS:
-
Bash:
export token="TOKEN_TO_YOUR_BOT"
export service_file="SERVICE_FILE_FOR_GOOGLE_API"
-
-
-
Run bot
-
For Windows:
cd .\src\
python .\bot.py
-
For Linux, MacOS:
cd ./src/
python3 bot.py
-
-
Build Image
docker build -t gutspace .
-
Run container
docker run -it --env service_file="service_file.json" --env token="bot_token" --env TZ=Europe/Moscow gutspace