Comments (18)
Make sure you installed all requirements listed in the README(ffmpeg, python 2.7)
from master-bot.
Yes, I installed all.
from master-bot.
Hmm, I updated bot now, and when I use !play I get this error:
An error occurred while running the command: TypeError: Cannot read property 'isTriviaRunning' of undefined
from master-bot.
zoranzoki21@discord:~/KizuleBot$ node --version
v12.16.1
zoranzoki21@discord:~/KizuleBot$ npm --version
6.13.4
zoranzoki21@discord:~/KizuleBot$
from master-bot.
Did you clone this repo or only copy the play command? If you copied only the command it will not work as intended
from master-bot.
I cloned full repo, translated it into the Serbian. Other (non-music) commands works.
Information about discord-js and discord.js-commando per #14:
zoranzoki21@discord:~/KizuleBot$ npm view discord.js version
12.0.2
zoranzoki21@discord:~/KizuleBot$ npm view discord.js-commando version
0.10.0
zoranzoki21@discord:~/KizuleBot$
from master-bot.
What error are you getting in the console? If you didn't touch index.js or atleast didn't change any variable names, there is no reason you would get that error since triviaData and musicData are defined in index.js
from master-bot.
In console I get nothing. There is just:
zoranzoki21@discord:~/KizuleBot$ node .
Ready!
Uh, I removed:
Structures.extend('Guild', Guild => {
class MusicGuild extends Guild {
constructor(client, data) {
super(client, data);
this.musicData = {
queue: [],
isPlaying: false,
nowPlaying: null,
songDispatcher: null,
volume: 1
};
this.triviaData = {
isTriviaRunning: false,
wasTriviaEndCalled: false,
triviaQueue: [],
triviaScore: new Map()
};
}
}
return MusicGuild;
});
from index.js because I wanted to remove music as it no works, and I added it back now, sorry.
But I still have problem with playing sound (what I reported :) ).
from master-bot.
Glad we resolved that. About the sound, if you are getting an error, paste it here. Make sure again that python 2.7 and ffmpeg are correctly installed, and run npm i node-opus
, make sure the build doesn't fail.
What OS are you using?
from master-bot.
Python 2.7 and ffmpeg are correctly, installed, npm i node-opus
done.
from master-bot.
when installing node-opus, did it run a build?
bunch of lines like this?
from master-bot.
Yes
from master-bot.
If you have a bad network(or slow speed) that may also cause it. I run the bot on 2 machines with different operating systems and it works flawlessly(good network on both).
Are you running it on your pc? I need you to provide more information because that's a problem on your end and I can't figure it out without info
from master-bot.
No, I run bot on VPS.
from master-bot.
How did you install ffmpeg? What is the operating system of the VPS?
from master-bot.
Debian 10, via apt.
from master-bot.
We went through everything that could be done..
- make sure python 2.7 and ffmpeg are installed
- make sure node-opus build doesn't fail
- check network connection(you said you run the bot on a VPS so its got to have a good connection)
- make sure you didn't delete any more code like you did in index.js
If you're not getting any console error I can't go beyond these 3 solutions :/
The problem is on your end somewhere
from master-bot.
Ok, thanks!
from master-bot.
Related Issues (20)
- Alternative Postgres Hosting HOT 3
- Unable to run BOT after following setup bot guides HOT 9
- Unable to start up bot HOT 6
- bot cannot respond from container HOT 9
- Gif commands not working HOT 6
- Discussion - bot compatibility with other bots HOT 9
- Invalid enviroment Variables on startup HOT 3
- Crash when attempting to play song HOT 8
- Try signing in with a different account HOT 5
- napi-rs/canvas is not marked as a dependency
- Twitch command not working HOT 4
- Top and Controversial not working in Reddit command HOT 2
- Error: P1000: Authentication failed against database server at `localhost` HOT 5
- npm run dev:bot exited with code -4058 & npm run dev:dashboard exited with code -4058 HOT 8
- `npm run dev` outputting multiple errors HOT 1
- Features to be added back after turborepo rewrite HOT 2
- pnpm i fails HOT 10
- STUCK : Watching for files changes HOT 9
- Not able to access website and bot not responding on discord. HOT 3
- Docker Deployment HOT 2
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 master-bot.