mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 00:06:42 +02:00
Fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[
|
||||
{
|
||||
"airhorn": "airhorn.mp3",
|
||||
"ayaya": "ayaya.mp3",
|
||||
"cat": "cat.mp3",
|
||||
@@ -19,4 +19,4 @@
|
||||
"woohoo": "woohoo.mp3",
|
||||
"wumbo": "wumbo.mp3",
|
||||
"zelda chest": "zelda-chest.mp3"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ module.exports = class SoundboardCommand extends Command {
|
||||
key: 'sound',
|
||||
prompt: `What sound would you like to play? Either ${list(Object.keys(sounds), 'or')}.`,
|
||||
type: 'string',
|
||||
default: () => Object.keys(sounds)[Math.floor(Math.random() * sounds.length)],
|
||||
validate: sound => {
|
||||
if (sounds[sound.toLowerCase()]) return true;
|
||||
return `Invalid sound, please enter either ${list(Object.keys(sounds), 'or')}.`;
|
||||
|
||||
Reference in New Issue
Block a user