-
Notifications
You must be signed in to change notification settings - Fork 27
/
audio-help.js
47 lines (35 loc) · 1.13 KB
/
audio-help.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const
_description = "Will try to help you with your audio issues! - by Myztiq",
_help = {
"/audiohelp": "Audio isn't working? Get some help. - by Myztiq"
}
;
const HELP = "Try clicking the Sync Audio button, wait 10 seconds. If that doesn't work, click the" +
" devices icon in the top right to check its sending audio to the right location. " +
"Consider restarting the app and spotify. " +
"If all else fails use /relink to get a direct to spotify link and follow along until the server cools down. Not available in your region? Use /yt to get a YouTube link.";
var AudioHelp = function (data) {
var that = this;
that.bot = data.bot;
that.help = _help;
function getAudioHelp() {
that.bot.emit("do:commandResponseExpandable", HELP);
}
that.commands = {
"/audiohelp": function () {
getAudioHelp();
}
};
return that;
};
AudioHelp.help = _help;
AudioHelp.description = _description;
module.exports = AudioHelp;
// This can be tested locally, like so:
// var DJ = new AudioHelp({
// bot:{
// on: console.log,
// emit: console.log
// }
// });
// DJ.commands["/audiohelp"]();