Code Monkey home page Code Monkey logo

Comments (10)

galnir avatar galnir commented on May 23, 2024

Update your nodejs version to v12 atleast

from master-bot.

Natemo2625 avatar Natemo2625 commented on May 23, 2024

it worked, thank you

from master-bot.

Natemo2625 avatar Natemo2625 commented on May 23, 2024

Now it stays silent and I get this error,

TypeError: Cannot convert "null" to int
/rbd/pnpm-volume/d61bf66c-3eb5-47fc-bf00-f6750a1aee03/node_modules/.registry.npmjs.org/opusscript/0.0.7/node_modules/opusscript/build/opusscript_native_wasm.js:8
var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}Module["arguments"]=[];Module["thisProgram"]="./this.program";Module["quit"]=function(status,toThrow){throw toThrow};Module["preRun"]=[];Module["postRun"]=[];var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_HAS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_HAS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_NODE=ENVIRONMENT_HAS_NODE&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMEN
abort(TypeError: Cannot convert "null" to int). Build with -s ASSERTIONS=1 for more info.

from master-bot.

galnir avatar galnir commented on May 23, 2024

Did you follow all the requirements and installed all the things I listed in the README?

from master-bot.

Natemo2625 avatar Natemo2625 commented on May 23, 2024

Yes, I did

from master-bot.

galnir avatar galnir commented on May 23, 2024

The error is from opusscript, did you clone the repo or copy existing code? Because this repo uses node-opus

from master-bot.

Natemo2625 avatar Natemo2625 commented on May 23, 2024

I cloned the repo, added opusscript, should I remove opusscript?

from master-bot.

galnir avatar galnir commented on May 23, 2024

You don't need to add dependencies to this repo, remove opusscript, there is already node-opus in the dependency list. After you remove opusscript hit npm i node-opus to make sure the build didn't fail

from master-bot.

Natemo2625 avatar Natemo2625 commented on May 23, 2024

After removing opusscript and installing node-opus 3 times now, I keep getting this error saying it can't be found

Error: Could not find an Opus module! Please install @discordjs/opus, node-opus, or opusscript.
at new OpusStream (/rbd/pnpm-volume/d61bf66c-3eb5-47fc-bf00-f6750a1aee03/node_modules/.registry.npmjs.org/prism-media/1.2.1/node_modules/prism-media/src/opus/Opus.js:42:13)
at new Encoder (/rbd/pnpm-volume/d61bf66c-3eb5-47fc-bf00-f6750a1aee03/node_modules/.registry.npmjs.org/prism-media/1.2.1/node_modules/prism-media/src/opus/Opus.js:130:5)
at AudioPlayer.playPCMStream (/rbd/pnpm-volume/d61bf66c-3eb5-47fc-bf00-f6750a1aee03/node_modules/.github.com/discordjs/discord.js/d3c9384c9c47cf293858778f36da014a5a503557/node_modules/discord.js/src/client/voice/player/BasePlayer.js:58:34)
at AudioPlayer.playUnknown (/rbd/pnpm-volume/d61bf66c-3eb5-47fc-bf00-f6750a1aee03/node_modules/.github.com/discordjs/discord.js/d3c9384c9c47cf293858778f36da014a5a503557/node_modules/discord.js/src/client/voice/player/BasePlayer.js:53:17)
at VoiceConnection.play (/rbd/pnpm-volume/d61bf66c-3eb5-47fc-bf00-f6750a1aee03/node_modules/.github.com/discordjs/discord.js/d3c9384c9c47cf293858778f36da014a5a503557/node_modules/discord.js/src/client/voice/util/PlayInterface.js:71:28)
at /app/commands/music/play.js:223:12
at processTicksAndRejections (internal/process/task_queues.js:88:5)

from master-bot.

Natemo2625 avatar Natemo2625 commented on May 23, 2024

I just installed @discordjs/opus and it works just fine now

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.