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