mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +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!`);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "77.0.0",
|
||||
"version": "77.0.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user