Add sysmsg sound

pull/1/head
Talon 2021-04-09 13:33:14 +02:00
parent fdfc431107
commit 9ec6ee3922
3 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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);
}) })
} }

1
package-lock.json generated
View File

@ -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": {