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
Add to your server with a link
Use slash commands to start:
- /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
Requirements:
- Mongo DB
- Node.js (npm)
Setup:
- Register you bot on discord developers portal
- Download the source code
- Run
npm install
ornpm ci
- Add
.env
file to pass ENV paramsSECRET_KEY
token from Bot settings on dev portal underBot
-Token
CLIENT_ID
client id from Bot General Information on dev portal underGeneral
-Application ID
TWITCH_CLIENT_ID
with Twitch API Client ID (visit dev console to register)TWITCH_SECRET
with Twitch API secret codeMONGO_URL
Mongo DB connection URLmongodb://...
MONGO_DB
name of DB in MongoUPDATE_INTERVAL
(optional) check each subscription everyUPDATE_INTERVAL
millisecondsTOTAL_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/cli
globally to getnx
cli -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.