Discord bot, sending notifications (only Russian l10n for now) to selected channels on different events, using discord.js. Currently supports:
- goodgame.ru stream start/stop
- goodgame.ru announcement add/edit/remove
- twitch.tv stream start/stop
Requirements:
- Mongo DB
- Node.js (npm)
Setup:
- Register you bot on discord developers portal
- Download the source code
- Run
npm installornpm ci - Add
.envfile to pass ENV paramsSECRET_KEYtoken from Bot settings on dev portal underBot-TokenCLIENT_IDclient id from Bot General Information on dev portal underGeneral-Application IDTWITCH_CLIENT_IDwith Twitch API Client ID (visit dev console to register)TWITCH_SECRETwith Twitch API secret codeMONGO_URLMongo DB connection URLmongodb://...MONGO_DBname of DB in MongoUPDATE_INTERVAL(optional) check each subscription everyUPDATE_INTERVALmillisecondsTOTAL_SHARDS(optional) number of shards to run ('auto' is the default)
- Run
nx build sharding && nx build bot(you might need to either reopen the console or install@nrwl/cliglobally to getnxcli -npm i -g @nrwl/cli) - Run
node dist/apps/sharding/main.js - Use the invitation link for notiffio above to invite the bot to your server, but replace client_id with your
General information-Client ID - Enjoy 🤖
Node v16+ is required.
Use slash commands when the bot is online:
- /notify help - show help
- /subscribe {channel URL} - add notification for twitch/goodgame channel
- /list - list of all notifications on a server
- /unsubscribe {channel URL} - remove notification
- /settings help - show help for settings command