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
|
@ -28,7 +28,8 @@ export default {
|
|||
filename.endsWith(".mp3") ||
|
||||
filename.endsWith(".wav") ||
|
||||
filename.endsWith(".ogg") ||
|
||||
filename.endsWith(".webm")
|
||||
filename.endsWith(".webm") ||
|
||||
filename.endsWith(".m4a")
|
||||
) {
|
||||
const filenameNoExtension = filename.split(".")[0];
|
||||
const files = fs.readdirSync("resources/soundboard");
|
||||
|
@ -95,7 +96,7 @@ export default {
|
|||
} else {
|
||||
action.reply(
|
||||
message,
|
||||
`invalid file extention; only \`mp3\`, \`wav\`, and \`ogg\` files are supported. \`${
|
||||
`invalid file extention; only \`mp3\`, \`wav\`, \`ogg\`, \`webm\`, and \`m4a\` files are supported. \`${
|
||||
filename.split(".")[1]
|
||||
}\` is not.`
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue