mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Fix
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = class RateCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'thing',
|
||||
prompt: 'Who do you want to rate?',
|
||||
prompt: 'What do you want to rate?',
|
||||
type: 'string',
|
||||
max: 1950
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ module.exports = class WaifuCommand extends Command {
|
||||
const waifuKeys = Object.keys(waifus);
|
||||
const waifu = waifuKeys[Math.floor(Math.random() * waifuKeys.length)];
|
||||
try {
|
||||
const waifuImage = await randomFromImgurAlbum(waifu);
|
||||
const waifuImage = await randomFromImgurAlbum(waifus[waifu]);
|
||||
return msg.say(waifu, { files: [waifuImage] });
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
|
||||
Reference in New Issue
Block a user