mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
27 lines
857 B
JavaScript
27 lines
857 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
|
|
module.exports = class CuddleCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'cuddle',
|
|
group: 'roleplay',
|
|
memberName: 'cuddle',
|
|
description: 'Cuddles someone. (;cuddle @User)',
|
|
examples: [';cuddle @User'],
|
|
args: [{
|
|
key: 'thing',
|
|
prompt: 'What do you want to roleplay with?',
|
|
type: 'string'
|
|
}]
|
|
});
|
|
}
|
|
|
|
run(message, args) {
|
|
if (message.channel.type !== 'dm') {
|
|
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
|
}
|
|
const roleplayed = args.thing;
|
|
return message.say(`${message.author} *cuddles* ${roleplayed}`);
|
|
}
|
|
};
|