Comments (9)
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.
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.
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.
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.
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.
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.
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.
I tried it and it worked! thanks for your time and help!
from discord-tts-bot.
Alright, I'm glad it worked! :)
from discord-tts-bot.
Related Issues (20)
- Crash on Leaving ${channel.name} do to inactivity HOT 3
- Channel delete crashes the bot LevelDataProvider HOT 10
- Crash when parsing custom server emojis HOT 1
- Crash when sending images/stickers in TTS channel HOT 3
- Add support for NextUp Ivona TTS engine. HOT 1
- Add an option for the bot to say who said what. HOT 2
- Add support for TTS Tool - Microsoft and Amazon voices. HOT 1
- Settings are broken HOT 3
- Add the option to log what people say in the channel.
- Could you add the prefix to replace the slash command HOT 2
- bot not starting HOT 3
- Bot shouldn't read out links
- The bot shouldn't say "User said:" when the same user sends multiple successive messages.
- cannot deploy bot in repl'it HOT 1
- Re-enable the prefix commands HOT 3
- Google_tts slow speed is the same as normal HOT 1
- How to use TTS without `/say` command after have joined channel HOT 4
- Support for Other TTS Engines? HOT 4
- Commandless Text-only TTS channels not working
- Voice sounds laggy when speaking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-tts-bot.