Audio hook in bot response

javascript
audio
audiohook
phantombot

#1

Hi there!
I apologize in advance for my poor knowledge of English! Is there any possibility to make sounds from the audio hook in the bot’s response? For example, I need to make a sound notification when a person wins in !gamble, for this I go to scripts> lang> english> games> games-gambling.js and change there:

$ .lang.register (‘gambling.won’, ‘$ 1 rolled $ 2 and won $ 3! $ 5’);

on:

$ .lang.register (‘gambling.won’, ‘$ 1 rolled $ 2 and won $ 3! $ 5 (playsound applause)’);

It seems to me that this should work, but it is not :frowning:


#2

same kind of idea as here


#3

Let me know if you figure it out… I have yet to get the script to work correctly