Code Monkey home page Code Monkey logo

Comments (3)

Meowhal avatar Meowhal commented on May 31, 2024

Thank you for reporting. I Added Error handler.

There seems to be a problem logging in with the bot's token.
Make sure your bot's token is correct.
Check the set up guide -> https://github.com/Meowhal/osu-ahr#setup-1

from osu-ahr.

capthusky avatar capthusky commented on May 31, 2024

Thank you for reporting. I Added Error handler.

There seems to be a problem logging in with the bot's token.
Make sure your bot's token is correct.
Check the set up guide -> https://github.com/Meowhal/osu-ahr#setup-1

Here's the new error I got, I've 3x check the exact token and not a single letter or symbol was missing. I also regenerated new token and still got the same error.

[07:43:40.487][ERROR] discord - HTTPError [ReferenceError]: AbortController is not defined
at RequestHandler.execute (C:\Users\test\Desktop\osu-ahr-master\node_modules\discord.js\src\rest\RequestHandler.js:172:15)
at RequestHandler.execute (C:\Users\test\Desktop\osu-ahr-master\node_modules\discord.js\src\rest\RequestHandler.js:176:19)
at RequestHandler.push (C:\Users\test\Desktop\osu-ahr-master\node_modules\discord.js\src\rest\RequestHandler.js:50:25)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async WebSocketManager.connect (C:\Users\test\Desktop\osu-ahr-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:128:9)
at async Client.login (C:\Users\test\Desktop\osu-ahr-master\node_modules\discord.js\src\client\Client.js:245:7)
at async DiscordBot.start (C:\Users\test\Desktop\osu-ahr-master\src\discord\DiscordBot.ts:88:7) {
code: 500,
method: 'get',
path: '/gateway/bot',
requestData: { json: undefined, files: [] }

Is there something I need to do with the OAuth2?

from osu-ahr.

Meowhal avatar Meowhal commented on May 31, 2024

Discord.js (The library I used to access discord) requires Node 16.6 or higher.
Try using the latest version of nodejs.

https://discordjs.guide/additional-info/changes-in-v13.html#before-you-start

v13 requires Node 16.6 or higher to use, so make sure you're up to date. To check your Node version, use node -v in your terminal or command prompt, and if it's not high enough, update it! There are many resources online to help you with this step based on your host system.

from osu-ahr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.