mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
18 lines
428 B
JavaScript
18 lines
428 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: 'random',
|
|
memberName: 'fact-core',
|
|
description: 'Responds with a random Fact Core quote.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
|
|
}
|
|
};
|