Giter VIP home page Giter VIP logo

Comments (9)

moonstar-x avatar moonstar-x commented on July 17, 2024

Hey there, how are you installing the bot?

The bot is not yet compatible with Discord.js v13 and it seems that you're trying to install v13.

from discord-tts-bot.

SparkyTheCat1 avatar SparkyTheCat1 commented on July 17, 2024

Hey there, how are you installing the bot?

The bot is not yet compatible with Discord.js v13 and it seems that you're trying to install v13.

Hey!
Im using nodejs, i tried installing it using npm install discord.js

from discord-tts-bot.

moonstar-x avatar moonstar-x commented on July 17, 2024

You should be able to install the bot with just

npm install

Running npm install discord.js will just install the discord.js dependency. Whereas npm install will install all the dependencies that the bot needs.

from discord-tts-bot.

SparkyTheCat1 avatar SparkyTheCat1 commented on July 17, 2024

now i get a different error ;/ :

C:\Users\User\Discord Bot\node_modules\discord.js\src\client\Client.js:544
throw new TypeError('CLIENT_MISSING_INTENTS');
^

TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.
at Client._validateOptions (C:\Users\User\Discord Bot\node_modules\←[4mdiscord.js←[24m\src\client\Client.js:544:13)
at new Client (C:\Users\User\Discord Bot\node_modules\←[4mdiscord.js←[24m\src\client\Client.js:73:10)
at Object. (C:\Users\User\Discord Bot\main.js:3:16)
←[90m at Module._compile (internal/modules/cjs/loader.js:1072:14)←[39m
←[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)←[39m
←[90m at Module.load (internal/modules/cjs/loader.js:937:32)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:778:12)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)←[39m
←[90m at internal/main/run_main_module.js:17:47←[39m {
[←[32mSymbol(code)←[39m]: ←[32m'CLIENT_MISSING_INTENTS'←[39m
}

It's obviously missing something but i have no clue what... I'm very sure I installed everything correctly.

from discord-tts-bot.

moonstar-x avatar moonstar-x commented on July 17, 2024

at Object. (C:\Users\User\Discord Bot\main.js:3:16)

Are you sure you're using this bot? The entrypoint for this is src/app.js, not main.js.

from discord-tts-bot.

SparkyTheCat1 avatar SparkyTheCat1 commented on July 17, 2024

Yes im sure, when i ran "npm init" in the cmd prompt it asked for "main" so i just named it main.js, thats what that file is.

from discord-tts-bot.

moonstar-x avatar moonstar-x commented on July 17, 2024

Hmmm,

First, you don't need to run npm init in this bot because it is already initialized. npm init just creates a package.json file for the project.

Secondly, this project has no main.js file, but you're getting an error on this file, more specificaly with client creation. That's why I'm asking whether you're sure that you're on the correct project.

In any case, if you're certain it's the correct project, I would delete the whole folder and re-clone the project. Then, to install the dependencies, I recommend you do:

npm ci --only=prod

This makes sure you install the correct versions of the dependencies.

That error that you sent at the end is because you have Discord.js v13 installed, and this bot does not support it yet.

from discord-tts-bot.

SparkyTheCat1 avatar SparkyTheCat1 commented on July 17, 2024

I tried it and it worked! thanks for your time and help!

from discord-tts-bot.

moonstar-x avatar moonstar-x commented on July 17, 2024

Alright, I'm glad it worked! :)

from discord-tts-bot.

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.