Files
xiao/commands/random-res/fact-core.js
T
2024-05-21 21:02:12 -04:00

25 lines
594 B
JavaScript

const Command = require('../../framework/Command');
const facts = require('../../assets/json/fact-core');
module.exports = class FactCoreCommand extends Command {
constructor(client) {
super(client, {
name: 'fact-core',
group: 'random-res',
description: 'Responds with a random Fact Core quote.',
credit: [
{
name: 'Valve',
url: 'https://www.valvesoftware.com/en/',
reasonURL: 'http://www.thinkwithportals.com/',
reason: 'Original "Portal 2" Game'
}
]
});
}
run(msg) {
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
}
};