Discord dota2bot checks OpenDota API for new recent matches of USERS every 'n' minutes. When new recent match is found, dota2bot posts a game summary as a message in a specified Discord channel.
- npm install
- create bot in discord developer portal
- grab app token and add to config/config.env
- enable dev mode on discord to enable copy channel_id for interactions
- add channel_id to config/config.env
- create mongodb db, grab URI, and add to config/config.env
- node index.js
- $list
- $track <ref_name>
- $untrack <ref_name>
- $insert <ref_name> <account_id>
/dota2bot database
└── servers
└── document
├── server_id : 'server_id'
├── channel_id : 'channel_id'
└── players_tracking : []
└── players
└── document
├── account_id : account_id
├── name : 'name'
├── match_id : match_id
└── servers : []
└── heroes
└── document
├── hero_id : hero_id
└── localized_name : 'localized_name'
- disallow commands affecting other servers with dota2bot
- fix scope to separate access of players between multiple servers