Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot doesn't accept commands #54

Open
JordanRushing opened this issue May 13, 2018 · 1 comment
Open

Bot doesn't accept commands #54

JordanRushing opened this issue May 13, 2018 · 1 comment
Labels

Comments

@JordanRushing
Copy link
Collaborator

Example:

From Discord:
$ !weather Seattle

Console output:

ubuntu at ip-172-31-16-223 in ~/discordbot (master●)
$ npm start

> [email protected] start /home/ubuntu/discordbot
> node bin/prod_bundle.min.js

Just saying im ready
/home/ubuntu/discordbot/src/plugins/spam/plugin.js:14
    if (command_args[0] != config.prefix + 'spam') {
                                  ^

TypeError: Cannot read property 'prefix' of undefined
    at SpamPlugin.handle_message (/home/ubuntu/discordbot/src/plugins/spam/plugin.js:14:35)
    at SpamPlugin.handle_event (/home/ubuntu/discordbot/src/plugins/plugin.js:45:19)
    at Client.client.on.event (/home/ubuntu/discordbot/src/coolpal.js:181:36)
    at emitOne (events.js:116:13)
    at Client.emit (events.js:211:7)
    at MessageCreateHandler.handle (/home/ubuntu/discordbot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
    at WebSocketPacketManager.handle (/home/ubuntu/discordbot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
    at WebSocketConnection.onPacket (/home/ubuntu/discordbot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:330:35)
    at WebSocketConnection.onMessage (/home/ubuntu/discordbot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:293:17)
    at WebSocket.onMessage (/home/ubuntu/discordbot/node_modules/ws/lib/event-target.js:120:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node bin/prod_bundle.min.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2018-05-13T11_07_30_595Z-debug.log
@JordanRushing
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant