45 lines
1.1 KiB
JavaScript
45 lines
1.1 KiB
JavaScript
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',
|
|
types: ['VERBAL']
|
|
}),
|
|
new Argument(client, {
|
|
name: 'banana',
|
|
aliases: ['bans', 'bananas'],
|
|
type: 'INTEGER',
|
|
types: ['FLAG', 'VERBAL'],
|
|
default: 0
|
|
}),
|
|
new Argument(client, {
|
|
name: 'carrot',
|
|
aliases: ['cars', 'carrots'],
|
|
type: 'STRING',
|
|
required: true,
|
|
types: ['FLAG', 'VERBAL']
|
|
})
|
|
]
|
|
});
|
|
|
|
this.client = client;
|
|
|
|
|
|
}
|
|
|
|
async execute(message) {
|
|
message.reply("test");
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = PingCommand; |