2019-01-18 17:51:46 +01:00
|
|
|
const { Command } = require('discord-akairo');
|
|
|
|
|
|
|
|
class unownedCommand extends Command {
|
|
|
|
constructor() {
|
|
|
|
super('unowned', {
|
|
|
|
aliases: ['unowned'],
|
|
|
|
category: 'hidden',
|
2019-03-26 23:37:32 +01:00
|
|
|
args: [
|
|
|
|
{
|
|
|
|
id: 'member',
|
2019-03-26 23:39:06 +01:00
|
|
|
type: 'string',
|
2019-03-26 23:37:32 +01:00
|
|
|
match: 'rest'
|
|
|
|
}
|
|
|
|
],
|
2019-01-18 17:51:46 +01:00
|
|
|
description: {
|
|
|
|
content: 'unowned',
|
|
|
|
usage: '',
|
|
|
|
examples: ['']
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-03-26 23:37:32 +01:00
|
|
|
async exec(message, args) {
|
|
|
|
if (args.member) {
|
2021-07-23 04:19:47 +02:00
|
|
|
return message.reply('You can\'t do that! that\'s illegal!');
|
2019-03-26 23:37:32 +01:00
|
|
|
}
|
2019-02-09 01:36:10 +01:00
|
|
|
if (message.author.id == '267065637183029248') {
|
2021-07-23 04:19:47 +02:00
|
|
|
return message.reply('You have been sucessfully unowned');
|
2019-02-09 01:36:10 +01:00
|
|
|
}
|
2021-07-23 04:19:47 +02:00
|
|
|
return message.reply('You can\'t unown what has already been owned <:classictroll:488559136494321703>');
|
2019-01-18 17:51:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = unownedCommand;
|