Giter VIP home page Giter VIP logo

Comments (18)

galnir avatar galnir commented on August 15, 2024

Make sure you installed all requirements listed in the README(ffmpeg, python 2.7)

from master-bot.

kizule avatar kizule commented on August 15, 2024

Yes, I installed all.

from master-bot.

kizule avatar kizule commented on August 15, 2024

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.

kizule avatar kizule commented on August 15, 2024
zoranzoki21@discord:~/KizuleBot$ node --version
v12.16.1
zoranzoki21@discord:~/KizuleBot$ npm --version
6.13.4
zoranzoki21@discord:~/KizuleBot$

from master-bot.

galnir avatar galnir commented on August 15, 2024

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.

kizule avatar kizule commented on August 15, 2024

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.

galnir avatar galnir commented on August 15, 2024

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.

kizule avatar kizule commented on August 15, 2024

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.

galnir avatar galnir commented on August 15, 2024

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.

kizule avatar kizule commented on August 15, 2024

Python 2.7 and ffmpeg are correctly, installed, npm i node-opus done.

from master-bot.

galnir avatar galnir commented on August 15, 2024

when installing node-opus, did it run a build?
Screenshot_1
bunch of lines like this?

from master-bot.

kizule avatar kizule commented on August 15, 2024

Yes

from master-bot.

galnir avatar galnir commented on August 15, 2024

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.

kizule avatar kizule commented on August 15, 2024

No, I run bot on VPS.

from master-bot.

galnir avatar galnir commented on August 15, 2024

How did you install ffmpeg? What is the operating system of the VPS?

from master-bot.

kizule avatar kizule commented on August 15, 2024

Debian 10, via apt.

from master-bot.

galnir avatar galnir commented on August 15, 2024

We went through everything that could be done..

  1. make sure python 2.7 and ffmpeg are installed
  2. make sure node-opus build doesn't fail
  3. check network connection(you said you run the bot on a VPS so its got to have a good connection)
  4. 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.

kizule avatar kizule commented on August 15, 2024

Ok, thanks!

from master-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.