Auto-Aliases

This commit is contained in:
Daniel Odendahl Jr
2017-05-07 17:34:59 +00:00
parent 0a1bc41b26
commit 52e299b1b4
44 changed files with 83 additions and 89 deletions
+2 -2
View File
@@ -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: [
{
+2 -2
View File
@@ -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.'
});
}
+2 -4
View File
@@ -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')
+2 -2
View File
@@ -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.'
});
}