mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +02:00
Remove useless aliases, bug fixes
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class AdviceSlipCommand extends Command {
|
||||
module.exports = class AdviceCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'advice-slip',
|
||||
aliases: ['advice'],
|
||||
name: 'advice',
|
||||
aliases: ['advice-slip'],
|
||||
group: 'random',
|
||||
memberName: 'advice-slip',
|
||||
memberName: 'advice',
|
||||
description: 'Responds with a random bit of advice.'
|
||||
});
|
||||
}
|
||||
@@ -2,13 +2,13 @@ const Command = require('../../structures/Command');
|
||||
const { stripIndent } = require('common-tags');
|
||||
const answers = ['yes', 'no'];
|
||||
|
||||
module.exports = class CharlieCharlieChallengeCommand extends Command {
|
||||
module.exports = class CharlieCharlieCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'charlie-charlie-challenge',
|
||||
aliases: ['charlie-charlie'],
|
||||
name: 'charlie-charlie',
|
||||
aliases: ['charlie-charlie-challenge'],
|
||||
group: 'random',
|
||||
memberName: 'charlie-charlie-challenge',
|
||||
memberName: 'charlie-charlie',
|
||||
description: 'Asks your question to Charlie.',
|
||||
args: [
|
||||
{
|
||||
@@ -5,7 +5,7 @@ module.exports = class ChuckNorrisCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'chuck-norris',
|
||||
aliases: ['chuck', 'norris'],
|
||||
aliases: ['norris'],
|
||||
group: 'random',
|
||||
memberName: 'chuck-norris',
|
||||
description: 'Responds with a random Chuck Norris joke.',
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const facts = require('../../assets/json/discord-email-fun-fact');
|
||||
|
||||
module.exports = class DiscordEmailFunFactCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'discord-email-fun-fact',
|
||||
aliases: ['email-fun-fact'],
|
||||
group: 'random',
|
||||
memberName: 'discord-email-fun-fact',
|
||||
description: 'Responds with a random fun fact from the Discord emails.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
const factNumber = Math.floor(Math.random() * facts.length);
|
||||
return msg.say(`**Fun Fact #${factNumber + 1}:** ${facts[factNumber]}`);
|
||||
}
|
||||
};
|
||||
@@ -7,7 +7,7 @@ module.exports = class DrawCardsCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'draw-cards',
|
||||
aliases: ['card-hand', 'draw-hand'],
|
||||
aliases: ['draw-hand'],
|
||||
group: 'random',
|
||||
memberName: 'draw-cards',
|
||||
description: 'Draws a random hand of playing cards.',
|
||||
|
||||
@@ -5,7 +5,7 @@ module.exports = class DuckCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'duck',
|
||||
aliases: ['quack', 'ducky'],
|
||||
aliases: ['ducky'],
|
||||
group: 'random',
|
||||
memberName: 'duck',
|
||||
description: 'Responds with a random duck image.',
|
||||
|
||||
@@ -5,7 +5,6 @@ module.exports = class FactCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'fact',
|
||||
aliases: ['wikifakt'],
|
||||
group: 'random',
|
||||
memberName: 'fact',
|
||||
description: 'Responds with a random fact.'
|
||||
|
||||
@@ -5,7 +5,6 @@ module.exports = class OracleTurretCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'oracle-turret',
|
||||
aliases: ['im-different'],
|
||||
group: 'random',
|
||||
memberName: 'oracle-turret',
|
||||
description: 'Responds with a random Oracle Turret quote.'
|
||||
|
||||
@@ -2,13 +2,13 @@ const SubredditCommand = require('../../structures/commands/Subreddit');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const { formatNumber } = require('../../util/Util');
|
||||
|
||||
module.exports = class RedditCommand extends SubredditCommand {
|
||||
module.exports = class SubredditCommand extends SubredditCommand {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'reddit',
|
||||
aliases: ['subreddit', 'r', 'r/', 'sub'],
|
||||
name: 'subreddit',
|
||||
aliases: ['r/', 'sub'],
|
||||
group: 'random',
|
||||
memberName: 'reddit',
|
||||
memberName: 'subreddit',
|
||||
description: 'Responds with a random post from a subreddit.',
|
||||
clientPermissions: ['EMBED_LINKS'],
|
||||
args: [
|
||||
Reference in New Issue
Block a user