stuyy / slappey

Discord Bot Project Generator
217 stars 50 forks source link

help? #70

Open Stxtic-Makes-stuff opened 3 years ago

Stxtic-Makes-stuff commented 3 years ago

when I try to run it i get this error

(node:15996) UnhandledPromiseRejectionWarning: TypeError: Bot ▬ is not a legal HTTP header value
    at RequestHandler.execute (C:\Users\Loren\Desktop\gamebot\node_modules\discord.js\src\rest\RequestHandler.js:93:15)
    at async RequestHandler.push (C:\Users\Loren\Desktop\gamebot\node_modules\discord.js\src\rest\RequestHandler.js:39:14)
    at async WebSocketManager.connect (C:\Users\Loren\Desktop\gamebot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:138:9)
    at async Client.login (C:\Users\Loren\Desktop\gamebot\node_modules\discord.js\src\client\Client.js:223:7)
    at async C:\Users\Loren\Desktop\gamebot\src\index.js:14:3
(Use `node --trace-warnings ...` to show where the warning was created)
(node:15996) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)
(node:15996) [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.
PS C:\Users\Loren\Desktop\gamebot> 

image

loveisglitchy commented 3 years ago

I think something may be corrupt. Try reinstalling slappey globally and update att packages.

loveisglitchy commented 3 years ago

Just for reference, can you also provide your index?

Stxtic-Makes-stuff commented 3 years ago

Just for reference, can you also provide your index?

I got it. You need to replace the thing in token with your actual token