2020-04-09 23:08:28 +02:00
|
|
|
const { Command, Argument } = require('../../../../interfaces/');
|
|
|
|
|
|
|
|
class PingCommand extends Command {
|
|
|
|
|
|
|
|
constructor(client) {
|
|
|
|
|
|
|
|
super(client, {
|
|
|
|
name: 'ping',
|
|
|
|
module: 'utility',
|
|
|
|
description: "Determines the ping of the bot.",
|
|
|
|
arguments: [
|
|
|
|
new Argument(client, {
|
|
|
|
name: 'apple',
|
|
|
|
type: 'BOOLEAN',
|
2020-04-13 22:38:10 +02:00
|
|
|
types: ['VERBAL', 'FLAG'],
|
|
|
|
default: true
|
2020-04-09 23:08:28 +02:00
|
|
|
}),
|
|
|
|
new Argument(client, {
|
|
|
|
name: 'banana',
|
|
|
|
aliases: ['bans', 'bananas'],
|
|
|
|
type: 'INTEGER',
|
|
|
|
types: ['FLAG', 'VERBAL'],
|
|
|
|
default: 0
|
2020-04-11 15:56:52 +02:00
|
|
|
}),
|
|
|
|
new Argument(client, {
|
|
|
|
name: 'carrot',
|
|
|
|
aliases: ['cars', 'carrots'],
|
|
|
|
type: 'STRING',
|
|
|
|
required: true,
|
|
|
|
types: ['FLAG', 'VERBAL']
|
2020-04-09 23:08:28 +02:00
|
|
|
})
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
this.client = client;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async execute(message) {
|
|
|
|
message.reply("test");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = PingCommand;
|