mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
28 lines
825 B
JavaScript
28 lines
825 B
JavaScript
const Command = require('../../framework/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',
|
|
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/'
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
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)]);
|
|
}
|
|
};
|