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