From 9ec6ee39222b7cd0d5d3175707371a54ad4a31b6 Mon Sep 17 00:00:00 2001 From: Talon Date: Fri, 9 Apr 2021 13:33:14 +0200 Subject: [PATCH] Add sysmsg sound --- index.js | 1 + modules/announcer/index.js | 1 + package-lock.json | 1 + 3 files changed, 3 insertions(+) diff --git a/index.js b/index.js index 6f0f03c..5b6cb33 100644 --- a/index.js +++ b/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); diff --git a/modules/announcer/index.js b/modules/announcer/index.js index bc09fe4..572caf1 100644 --- a/modules/announcer/index.js +++ b/modules/announcer/index.js @@ -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); }) } diff --git a/package-lock.json b/package-lock.json index 219683b..79d7f66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1376,6 +1376,7 @@ "hasInstallScript": true, "dependencies": { "node-addon-api": "^3.0.0", + "node-gyp": "3.x", "node-pre-gyp": "^0.11.0" }, "optionalDependencies": {