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

Fortnite command just won't work ;-; #33

Open
AsrieltheGoat opened this issue Dec 6, 2019 · 1 comment
Open

Fortnite command just won't work ;-; #33

AsrieltheGoat opened this issue Dec 6, 2019 · 1 comment

Comments

@AsrieltheGoat
Copy link

**PS C:\Users\AsrieltheGoat\Desktop\bot> node index.js
.---------------------------.

Commands
Command
-------------
fortnite.js
hmm.js
love.js
meme.js
rps.js
help.js
info.js
ping.js
whois.js
ban.js
clear.js
kick.js
report.js
say.js
'---------------------------'
Hi, A********* is now online!
(node:6532) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toLowerCase' of undefined
at Object.run (C:\Users\AsrieltheGoat\Desktop\bot\commands\experiment\fortnite.js:19:21)
at Client.<anonymous> (C:\Users\AsrieltheGoat\Desktop\bot\index.js:51:17)
at Client.emit (events.js:210:5)
at MessageCreateHandler.handle (C:\Users\AsrieltheGoat\Desktop\bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
at WebSocketPacketManager.handle (C:\Users\AsrieltheGoat\Desktop\bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
at WebSocketConnection.onPacket (C:\Users\AsrieltheGoat\Desktop\bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (C:\Users\AsrieltheGoat\Desktop\bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
at WebSocket.onMessage (C:\Users\AsrieltheGoat\Desktop\bot\node_modules\ws\lib\event-target.js:120:16)
at WebSocket.emit (events.js:210:5)
at Receiver.receiverOnMessage (C:\Users\AsrieltheGoat\Desktop\bot\node_modules\ws\lib\websocket.js:789:20)

(node:6532) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6532) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.**

Here the error message
I think there is something wrong with ur code ;-;
I spend a day to troubleshooting ur code but nothing change ;-;

@zientix
Copy link

zientix commented Dec 28, 2019

Are u typing only the command or command with an argument

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

No branches or pull requests

2 participants