by popular request (i kept forgetting) the latest version of pepperbot has been published. inclides new blacklist feature (for my own amusement,) random sound, and tons of bug fixes
This commit is contained in:
parent
8c595a9a01
commit
11a76b04ca
6 changed files with 67 additions and 50 deletions
|
@ -34,6 +34,8 @@ export default {
|
|||
wav: proposedfilename + ".wav",
|
||||
spacedwebm: proposedfilename.replaceAll(" ", "_") + ".webm",
|
||||
webm: proposedfilename + ".webm",
|
||||
spacedm4a: proposedfilename.replaceAll(" ", "_") + ".m4a",
|
||||
m4a: proposedfilename + ".m4a",
|
||||
};
|
||||
for (const value of Object.values(possibleFilenames)) {
|
||||
if (files.includes(value)) {
|
||||
|
@ -63,6 +65,7 @@ export default {
|
|||
"unable to find your file in the soundboard folder put `ls` as your args to upload a file of all names. try replacing spaces with _s. you proposed: " +
|
||||
proposedfilename
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (!lsmode) {
|
||||
const audioResource = createAudioResource(`resources/soundboard/${file}`);
|
||||
|
@ -90,6 +93,7 @@ export default {
|
|||
connection = getVoiceConnection(message.guild.id);
|
||||
connection.subscribe(audioPlayer);
|
||||
audioPlayer.play(audioResource);
|
||||
action.reply(message, `playing \`${file}\``);
|
||||
} else {
|
||||
action.sendMessage(message.channelId, {
|
||||
files: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue