mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 15:57:42 +02:00
Auto-Aliases
This commit is contained in:
@@ -4,12 +4,12 @@ const eastereggs = require('./eastereggs');
|
||||
module.exports = class EasterEggCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'easteregg',
|
||||
name: 'easter-egg',
|
||||
aliases: [
|
||||
'tag'
|
||||
],
|
||||
group: 'random',
|
||||
memberName: 'easteregg',
|
||||
memberName: 'easter-egg',
|
||||
description: 'Can you discover all the easter eggs?',
|
||||
args: [
|
||||
{
|
||||
|
||||
@@ -3,9 +3,9 @@ const { Command } = require('discord.js-commando');
|
||||
module.exports = class GiveFlowerCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'giveflower',
|
||||
name: 'give-flower',
|
||||
group: 'random',
|
||||
memberName: 'giveflower',
|
||||
memberName: 'give-flower',
|
||||
description: 'Gives Xiao Pai a flower.'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -35,10 +35,8 @@ module.exports = class StrawpollCommand extends Command {
|
||||
|
||||
async run(msg, args) {
|
||||
const { title, options } = args;
|
||||
if(options.length < 2)
|
||||
return msg.say('You provided less than two choices.');
|
||||
if(options.length > 31)
|
||||
return msg.say('You provided more than thirty choices.');
|
||||
if(options.length < 2) return msg.say('You provided less than two choices.');
|
||||
if(options.length > 31) return msg.say('You provided more than thirty choices.');
|
||||
try {
|
||||
const { body } = await request
|
||||
.post('https://strawpoll.me/api/v2/polls')
|
||||
|
||||
@@ -5,12 +5,12 @@ const request = require('superagent');
|
||||
module.exports = class WouldYouRatherCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'wouldyourather',
|
||||
name: 'would-you-rather',
|
||||
aliases: [
|
||||
'wyrather'
|
||||
],
|
||||
group: 'random',
|
||||
memberName: 'wouldyourather',
|
||||
memberName: 'would-you-rather',
|
||||
description: 'Gets a random would you rather question.'
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user