Automated soundboard on user join
Is it possible to make a discord bot that plays a certain sound when a certain user or a certain role member joins a vc?
By "is it possible" I mean how feasible is it? I've been programming for a long time so that is not an issue but how much work would it be otherwise? Would it be a hassle to make this? Since its really for a joke that won't really last that long maybe a day or two.
11 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.No no, not via the soundboard
i'll provide the audio file in the bot files
right
is there a way to check who that user is specifically?
also the roles of that user?
(event) Client#voiceStateUpdate
Emitted whenever a member changes voice state - e.g. joins/leaves a channel, mutes/unmutes.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
also if i host said bot on my pc, I wouldn't hear the audio twice right?
Don't really know how
ffmpeg
works
thanks ill check it outUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
right
alright, shouldn't take all that long then , thanks , ill check it out
how do I go about playing local sounds?
can i pass
createAudioResource
a local path?Unknown User•2y ago
Message Not Public
Sign In & Join Server To View