- new location for sfx list due to pastebin restrictions
- new sfx
This commit is contained in:
24
discord.js
24
discord.js
@@ -54,7 +54,7 @@ function init(config) {
|
|||||||
// retrieve sfx list from pastebin
|
// retrieve sfx list from pastebin
|
||||||
if (sfx == "" || sfx === undefined) {
|
if (sfx == "" || sfx === undefined) {
|
||||||
axios
|
axios
|
||||||
.get("https://pastebin.com/raw/vRsZxrrw")
|
.get("https://rentry.co/ghbotsfx/raw")
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
// break the result into half chunks if it exceeds the message limit size
|
// break the result into half chunks if it exceeds the message limit size
|
||||||
// (the backticks take up 6 characters, discord limit is 2k)
|
// (the backticks take up 6 characters, discord limit is 2k)
|
||||||
@@ -91,7 +91,7 @@ function init(config) {
|
|||||||
(function play(sfxFile) {
|
(function play(sfxFile) {
|
||||||
const dispatcher = connection.play(sfxFile, {
|
const dispatcher = connection.play(sfxFile, {
|
||||||
volume: guildConfig.sfxVolume,
|
volume: guildConfig.sfxVolume,
|
||||||
passes: guildConfig.passes
|
passes: guildConfig.passes,
|
||||||
});
|
});
|
||||||
dispatcher
|
dispatcher
|
||||||
.on("finish", (reason) => {
|
.on("finish", (reason) => {
|
||||||
@@ -126,8 +126,8 @@ function init(config) {
|
|||||||
embed: {
|
embed: {
|
||||||
title: "FunFact #" + displayNum,
|
title: "FunFact #" + displayNum,
|
||||||
color: 0x21c629,
|
color: 0x21c629,
|
||||||
description: funFact
|
description: funFact,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
} else {
|
} else {
|
||||||
@@ -156,8 +156,8 @@ function init(config) {
|
|||||||
embed: {
|
embed: {
|
||||||
title: "HamFact #" + displayNum,
|
title: "HamFact #" + displayNum,
|
||||||
color: 0x21c629,
|
color: 0x21c629,
|
||||||
description: hamFact
|
description: hamFact,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
} else {
|
} else {
|
||||||
@@ -221,7 +221,7 @@ function init(config) {
|
|||||||
},
|
},
|
||||||
reboot: (msg, guildConfig) => {
|
reboot: (msg, guildConfig) => {
|
||||||
if (msg.author.id == config.discord.adminID) process.exit(); // Requires a node module like Forever to work.
|
if (msg.author.id == config.discord.adminID) process.exit(); // Requires a node module like Forever to work.
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
client
|
client
|
||||||
@@ -278,8 +278,8 @@ function init(config) {
|
|||||||
embed: {
|
embed: {
|
||||||
title: commandNoPrefix,
|
title: commandNoPrefix,
|
||||||
color: 0x21c629,
|
color: 0x21c629,
|
||||||
description: result
|
description: result,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
// then a command exported from ankhbot
|
// then a command exported from ankhbot
|
||||||
@@ -290,8 +290,8 @@ function init(config) {
|
|||||||
embed: {
|
embed: {
|
||||||
title: commandNoPrefix,
|
title: commandNoPrefix,
|
||||||
color: 0x21c629,
|
color: 0x21c629,
|
||||||
description: result
|
description: result,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
} else {
|
} else {
|
||||||
@@ -386,6 +386,6 @@ Discord.Client.prototype.setRandomActivity = function () {
|
|||||||
|
|
||||||
this.user.setActivity(activity, {
|
this.user.setActivity(activity, {
|
||||||
url: `https://twitch.tv/fgfm`,
|
url: `https://twitch.tv/fgfm`,
|
||||||
type: "STREAMING"
|
type: "STREAMING",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
BIN
sfx/bweh.mp3
Normal file
BIN
sfx/bweh.mp3
Normal file
Binary file not shown.
BIN
sfx/dominos.mp3
Normal file
BIN
sfx/dominos.mp3
Normal file
Binary file not shown.
BIN
sfx/vision.mp3
Normal file
BIN
sfx/vision.mp3
Normal file
Binary file not shown.
Reference in New Issue
Block a user