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
d.js toolkit
d.js toolkit2y ago
• 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.
henry
henryOP2y ago
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?
d.js docs
d.js docs2y ago
guide Getting Started: Introduction read more
henry
henryOP2y ago
also the roles of that user?
d.js docs
d.js docs2y ago
event (event) Client#voiceStateUpdate Emitted whenever a member changes voice state - e.g. joins/leaves a channel, mutes/unmutes.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
henry
henryOP2y ago
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 out
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
henry
henryOP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y ago
guide Library: Cheat sheet - Playing audio read more
Want results from more Discord servers?
Add your server