Haha-Yes/commands/reserved/fartpiss.js

40 lines
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'],
2019-03-22 23:20:18 +01:00
cooldown: 86400000,
ratelimit: 5,
category: 'reserver',
2019-03-21 20:40:44 +01:00
args: [
{
id: 'member',
type: 'member'
}
],
description: {
content: 'fartpiss',
usage: '',
examples: ['']
}
});
}
async exec(message, args) {
if (message.guild.id != '240843640375607296') {
return;
}
2019-03-21 21:46:40 +01:00
if (!args.member) {
2019-03-22 23:41:06 +01:00
message.guild.members.get(message.author.id).setNickname('fart piss')
.then(() => message.channel.send('sucessfully fart pissed on you <:youngtroll:488559163832795136'))
.catch(() => message.channel.send('Sorry i could not fart piss on you :('));
2019-03-21 21:46:40 +01:00
}
2019-03-22 23:26:13 +01:00
args.member.setNickname('fart piss')
2019-03-22 23:41:06 +01: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 20:40:44 +01:00
}
}
module.exports = fartpissCommand;