Files
xiao/commands/random/fact-core.js
T
Daniel Odendahl Jr 45c8d62dd5 Credit Command
2019-04-14 00:03:38 +00:00

24 lines
528 B
JavaScript

const Command = require('../../structures/Command');
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.',
credit: [
{
name: 'Portal 2',
url: 'http://www.thinkwithportals.com/'
}
]
});
}
run(msg) {
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
}
};