Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG bot.dispatcher.setVolume is not a function #43

Open
Famf opened this issue Sep 26, 2023 · 0 comments
Open

BUG bot.dispatcher.setVolume is not a function #43

Famf opened this issue Sep 26, 2023 · 0 comments
Assignees

Comments

@Famf
Copy link

Famf commented Sep 26, 2023

I'm running the docker container and the music played by the bot is really loud. When I run !volume ? it shows 0.2 as the volume but it really sounds like at least 1. I tried running !volume 0.1 and got the following when running docker logs -f plexbot

TypeError: bot.dispatcher.setVolume is not a function at Object.process (/home/PlexBot/commands/volume.js:13:26) at Client.<anonymous> (/home/PlexBot/app/music.js:63:21) at Client.emit (node:events:513:28) at MessageCreateAction.handle (/home/PlexBot/node_modules/discord.js/src/client/actions/MessageCreate.js:26:14) at Object.module.exports [as MESSAGE_CREATE] (/home/PlexBot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (/home/PlexBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31) at WebSocketShard.onPacket (/home/PlexBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:482:22) at WebSocketShard.onMessage (/home/PlexBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:317:10) at callListener (/home/PlexBot/node_modules/ws/lib/event-target.js:290:14) at WebSocket.onMessage (/home/PlexBot/node_modules/ws/lib/event-target.js:209:9)

To Reproduce
Steps to reproduce the behavior:

  1. Try to change volume using !volume command
  2. Volume will not change
  3. Check logs using docker logs -f plexbot

Expected behavior
Should be able to adjust volume using !volume command

Versions (please complete the following information):

  • OS: Arch (Garuda Linux)
  • Node.js version : v16.20.2
  • Bot version Docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants