mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
Revert "Default functions"
This reverts commit 513a5fcf55a7d5e0b98dd9d52fc92b659e767e7b.
This commit is contained in:
@@ -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