Files
xiao/commands/random-res/never-have-i-ever.js
T
2021-01-12 21:51:38 -05:00

29 lines
868 B
JavaScript

const Command = require('../../structures/Command');
const { safe, nsfw } = require('../../assets/json/never-have-i-ever');
const all = [...safe, ...nsfw];
module.exports = class NeverHaveIEverCommand extends Command {
constructor(client) {
super(client, {
name: 'never-have-i-ever',
aliases: ['nhie', 'never-have-i', 'never-have', 'never-ever'],
group: 'random-res',
memberName: 'never-have-i-ever',
description: 'Responds with a random "Never Have I Ever..." statement.',
credit: [
{
name: 'PsyCat Games',
url: 'https://psycatgames.com/',
reason: 'Statement Data',
reasonURL: 'https://psycatgames.com/app/never-have-i-ever/'
}
]
});
}
async run(msg) {
if (msg.channel.nsfw) return msg.say(all[Math.floor(Math.random() * all.length)]);
return msg.say(safe[Math.floor(Math.random() * safe.length)]);
}
};