This is the code for the Telegram bot — @vipcasebot, that control VIP access to chat rooms and channels.
- Clone this repo:
git clone https://github.com/Kiku-Reise/vipcase
- Launch the mongo database locally
- Create
.env
with the environment variables listed below - Run
yarn install
in the root folder - Run
yarn develop
And you should be good to go! Feel free to fork and submit pull requests. Thanks!
USERNAME
— Telegram bot usernameTOKEN
— Telegram bot tokenCHANNEL_HANDLE
— Handle of the Telegram ad channelCHANNEL_ID
— ID of the Telegram ad channelMONGO
— URL of the mongo database
Bot should be admin at CHANNEL_ID
.
Also, please, consider looking at .env.sample
.
MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!