-
Setup environment
git clone git@github.com:NanoBjorn/hse_ms_bot.git cd hse_ms_bot # python3 -m pip install virtualenv python3 -m virtualenv env source env/bin/activate pip install -r requirements.txt
-
Install docker
-
Run postgres locally:
docker-compose run -p 5432:5432 postgres
-
Install ngrok
-
Run ngrok locally to publish 8000 port with https
ngrok http 8000
-
Fill .env file
cp .env.sample .env
and fill it manually
-
Run main.py in src/server, main_worker.py in src/worker and main_ms.py in src/ms
Server will run on https://0.0.0.0:8000
-
git clone git@github.com:NanoBjorn/hse_ms_bot.git cd hse_ms_bot/
-
Fill .env file
cp .env.sample .env
and fill it manually
-
Install nginx
-
Setup nginx with ./docker/nginx.conf file
-
Install docker
-
Run docker-compose
docker-compose up --build --detach
- Find @hsechatauthbot bot in Telegram
- Add @hsechatauthbot to your chat
- Make @hsechatauthbot an administrator
/ignore
- command to add a user to whitelist. Can be used as reply a to a Telegram "new chat member" message or just with the username:
/ignore @username
/ignore username
/ban
- command to ban a user. Banned user is deleted from all chats that are administered by bot. Can be used as a reply to a message of a banning user or just with the username:
/ban @username
/ban username