- Auto attach a poll to each channel message in discussion group
- Even if the message is a media group, would not send duplicated polls like similar bots
- Polls can be customized
- Auto remove any user (and ban for 60s) attempting to join the discussion group
- Only if granted "Ban user" permission
- Add @comments_helper_bot to the discussion group of a channel
- Grant
Ban users
permission if needed /set_poll
to set customized polls/force_poll
to manually attach a poll to a message
-
Clone
git clone https://github.com/Rongronggg9/comments-helper-bot cd comments-helper-bot
-
Install dependencies
npm install serverless -g npm install
-
Create
serverless.env.yml
TOKEN: <your token> REDIS_HOST: <your redis host> # optional, customized poll will be enabled if set REDIS_PORT: <redis port> # optional REDIS_PASSWORD: <redis password> # optional
-
Deploy
serverless deploy --region <AWS region>
-
Activate Webhook
- GET or POST the
set_webhook
endpoint. It should be like:
https://<depends-on-your-deployment>.amazonaws.com/set_webhook
- GET or POST the
not tested
For the docker image go to: https://hub.docker.com/r/rongronggg9/comments-helper-bot
docker run \
--restart unless-stopped \
-e TOKEN=<bot token> \
-e T_PROXY=<scheme://host:port/> \
-e REDIS_HOST=<redis host> \
-e REDIS_PORT=<redis port> \
-e REDIS_PASSWORD=<redis password>
rongronggg9/comments-helper-bot