Add sysmsg sound
parent
fdfc431107
commit
9ec6ee3922
1
index.js
1
index.js
|
@ -40,6 +40,7 @@ const api = {
|
|||
respond: (message, text, voiceText) => {
|
||||
let toSend = message.member.displayName + ", " + (voiceText ? voiceText : text);
|
||||
if (message.member.voice.channel) {
|
||||
api.queue.add(__dirname + "/sysmsg.wav");
|
||||
api.speak(message.member.voice.channel, toSend);
|
||||
} else {
|
||||
message.reply(text);
|
||||
|
|
|
@ -24,6 +24,7 @@ module.exports = function (bot, api) {
|
|||
} else {
|
||||
str = username + " joined the channel";
|
||||
}
|
||||
api.queue.add(__dirname + "/sysmsg.wav");
|
||||
api.speak(channel, str);
|
||||
})
|
||||
}
|
||||
|
|
|
@ -1376,6 +1376,7 @@
|
|||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"node-addon-api": "^3.0.0",
|
||||
"node-gyp": "3.x",
|
||||
"node-pre-gyp": "^0.11.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
|
Loading…
Reference in New Issue