mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Fixes
This commit is contained in:
@@ -19,9 +19,10 @@ module.exports = class SuperpowerCommand extends Command {
|
||||
const { body } = await request
|
||||
.get('http://powerlisting.wikia.com/api/v1/Articles/AsSimpleJson/')
|
||||
.query({ id: article });
|
||||
const data = body.sections[0];
|
||||
return msg.reply(stripIndents`
|
||||
Your superpower is... **${body.title}**!
|
||||
_${shorten(body.sections[0].content.map(section => section.text).join('\n\n'), 1950)}_
|
||||
Your superpower is... **${data.title}**!
|
||||
_${shorten(data.content.map(section => section.text).join('\n\n'), 1950)}_
|
||||
`);
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
|
||||
@@ -18,7 +18,7 @@ module.exports = class CowSayCommand extends Command {
|
||||
key: 'text',
|
||||
prompt: 'What text would you like the cow to say?',
|
||||
type: 'string',
|
||||
max: 1500
|
||||
max: 500
|
||||
},
|
||||
{
|
||||
key: 'type',
|
||||
|
||||
@@ -18,7 +18,7 @@ module.exports = class CowThinkCommand extends Command {
|
||||
key: 'text',
|
||||
prompt: 'What text would you like the cow to think?',
|
||||
type: 'string',
|
||||
max: 1500
|
||||
max: 500
|
||||
},
|
||||
{
|
||||
key: 'type',
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "84.1.0",
|
||||
"version": "84.1.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user