guanzhangrtk / rotkbot Goto Github PK
View Code? Open in Web Editor NEWDiscord Bot for ROTK mobile game
Discord Bot for ROTK mobile game
App crashed on ZEIT, AFAIK nobody ran any commands at that time so not exactly sure what happened, I need to double check that the bot is available only in that one Discord channel. Here's the log:
11/07 06:21 PM (3h)
[11/8/2018, 02:21:09] Updating file ./data/participants.json... done
11/07 06:58 PM (2h)
/home/nowuser/src/rotk.js:192
11/07 06:58 PM (2h)
let sender = bot.users[userID].username;
11/07 06:58 PM (2h)
^
11/07 06:58 PM (2h)
11/07 06:58 PM (2h)
TypeError: Cannot read property 'username' of undefined
11/07 06:58 PM (2h)
at DiscordClient.<anonymous> (/home/nowuser/src/rotk.js:192:34)
11/07 06:58 PM (2h)
at emitMany (events.js:147:13)
11/07 06:58 PM (2h)
at DiscordClient.emit (events.js:224:7)
11/07 06:58 PM (2h)
at DiscordClient.handleWSMessage (/home/nowuser/src/node_modules/discord.io/lib/index.js:1848:11)
11/07 06:58 PM (2h)
at emitTwo (events.js:126:13)
11/07 06:58 PM (2h)
at WebSocket.emit (events.js:214:7)
11/07 06:58 PM (2h)
at Receiver.ontext (/home/nowuser/src/node_modules/ws/lib/WebSocket.js:841:10)
11/07 06:58 PM (2h)
at /home/nowuser/src/node_modules/ws/lib/Receiver.js:536:18
11/07 06:58 PM (2h)
at Receiver.applyExtensions (/home/nowuser/src/node_modules/ws/lib/Receiver.js:371:5)
11/07 06:58 PM (2h)
at /home/nowuser/src/node_modules/ws/lib/Receiver.js:508:14
11/07 06:58 PM (2h)
npm ERR! code ELIFECYCLE
11/07 06:58 PM (2h)
npm ERR! errno 1
11/07 06:58 PM (2h)
npm ERR! [email protected] start: `node rotk.js`
11/07 06:58 PM (2h)
npm ERR! Exit status 1
11/07 06:58 PM (2h)
npm ERR!
11/07 06:58 PM (2h)
npm ERR! Failed at the [email protected] start script.
11/07 06:58 PM (2h)
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
11/07 06:58 PM (2h)
11/07 06:58 PM (2h)
npm ERR! A complete log of this run can be found in:
11/07 06:58 PM (2h)
npm ERR! /home/nowuser/.npm/_logs/2018-11-08T02_58_54_334Z-debug.log
11/07 06:58 PM (2h)
npm start
11/07 06:58 PM (2h)
11/07 06:58 PM (2h)
> [email protected] start /home/nowuser/src
11/07 06:58 PM (2h)
> node rotk.js
Currently the bot responds to a damage update command with: "(Player), your damage has been recorded"
It would be more useful if it also displays the total damage so far, and the remaining damage.
raid will start in -133 hours and -17 minutes please !checkin now!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.