Bot that talks about the game PLAYERUNKNOWN'S BATTLEGROUNDS (aka pubg)
Designed for use in twitch chat
Responds with player data from pubg.net
Connects to twitch chat with help from a pretty cool library tmi.js
See specs for design details
Visit https://www.twitch.tv/pubg_stat
All commands must begin with !pubgstats
for the bot to respond
Only required parameter is id aka in-game name (ex: NinjaKappa, summit1g)
!pubgstats [ID]
!pubgstats [QUEUE] [ID]
!pubgstats [MODE] [ID]
!pubgstats [REGION] [QUEUE] [ID]
!pubgstats [REGION] [MODE] [ID]
!pubgstats [QUEUE] [MODE] [ID]
!pubgstats [REGION] [QUEUE] [MODE] [ID]
Valid types - casing should not matter
{
queue: ['SOLO', 'DUO', 'SQUAD'],
mode: ['FPP', 'TPP'],
region: ['AS', 'NA', 'EU', 'OCE', 'SA', 'SEA'],
}
To setup you need node >= v8.0.0 on your computer
Run npm install
at the top level of this directory
Must have credentials for twitch oauth.
Create a file called .env
refer to .env-example
for what to write in it
To start run npm start
To test run npm test
- Write more tests
- Debounce requests to prevent crash
- Document more