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

help? #70

Open
Stxtic-Makes-stuff opened this issue May 18, 2021 · 3 comments
Open

help? #70

Stxtic-Makes-stuff opened this issue May 18, 2021 · 3 comments

Comments

@Stxtic-Makes-stuff
Copy link

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
Copy link

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

@loveisglitchy
Copy link

Just for reference, can you also provide your index?

@Stxtic-Makes-stuff
Copy link
Author

Just for reference, can you also provide your index?

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

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