mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 08:19:08 +02:00
Revert "Default functions"
This reverts commit 513a5fcf55a7d5e0b98dd9d52fc92b659e767e7b.
This commit is contained in:
@@ -21,13 +21,14 @@ module.exports = class YearsCommand extends Command {
|
||||
key: 'user',
|
||||
prompt: 'Which user would you like to edit the avatar of?',
|
||||
type: 'user',
|
||||
default: msg => msg.author
|
||||
default: ''
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg, { user }) {
|
||||
if (!user) user = msg.author;
|
||||
const avatarURL = user.displayAvatarURL({
|
||||
format: 'png',
|
||||
size: 256
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const facts = require('../../assets/json/fun-fact');
|
||||
|
||||
module.exports = class FunFactCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'fun-fact',
|
||||
aliases: ['fact'],
|
||||
group: 'random',
|
||||
memberName: 'fun-fact',
|
||||
description: 'Responds with a random fun fact.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user