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