Haha-Yes/commands/reserved/fartpiss.js

41 lines
1.1 KiB
JavaScript
Raw Normal View History

2019-03-21 20:40:44 +01:00
const { Command } = require('discord-akairo');
class fartpissCommand extends Command {
constructor() {
super('fartpiss', {
aliases: ['fartpiss'],
category: 'reserved',
2019-03-21 20:40:44 +01:00
args: [
{
id: 'member',
type: 'member',
match: 'rest'
2019-03-21 20:40:44 +01:00
}
],
description: {
content: 'fartpiss',
usage: '',
examples: ['']
}
});
}
async exec(message, args) {
if (message.guild.id != '240843640375607296') {
return;
}
2019-11-21 15:27:19 +01:00
if (!args.member) {
return message.guild.members.resolve(message.author.id).setNickname('fart piss')
2019-05-08 23:17:11 +02:00
.then(() => message.channel.send('sucessfully fart pissed on you <:youngtroll:488559163832795136>'))
.catch(() => message.channel.send('Sorry i could not fart piss on you :('));
2019-04-28 13:12:06 +02:00
} else {
2019-05-08 22:57:06 +02:00
return args.member.setNickname('fart piss')
2019-04-28 13:12:06 +02:00
.then(() => message.channel.send(`sucessfully fart pissed on ${args.member.user.username} <:youngtroll:488559163832795136>`))
.catch(() => message.channel.send(`Sorry i could not fart piss on ${args.member.user.username} :(`));
2019-03-21 21:46:40 +01:00
}
2019-04-28 13:12:06 +02:00
2019-03-21 20:40:44 +01:00
}
}
module.exports = fartpissCommand;