mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
19 lines
500 B
JavaScript
19 lines
500 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
const facts = require('./facts');
|
|
|
|
module.exports = class FactCoreCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'factcore',
|
|
group: 'response',
|
|
memberName: 'factcore',
|
|
description: 'Says a random Fact Core quote.'
|
|
});
|
|
}
|
|
|
|
run(message) {
|
|
const fact = facts[Math.floor(Math.random() * facts.length)];
|
|
return message.say(fact);
|
|
}
|
|
};
|