forked from Galactic/galactic-bot
30 lines
674 B
JavaScript
30 lines
674 B
JavaScript
const { Command } = require('../../../../interfaces/');
|
|
|
|
class PingCommand extends Command {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
name: 'test',
|
|
module: 'utility',
|
|
description: "Determines the ping of the bot.",
|
|
arguments: [
|
|
|
|
]
|
|
});
|
|
|
|
this.client = client;
|
|
|
|
|
|
}
|
|
|
|
async execute(message) {
|
|
|
|
let response = await this.client.transactionHandler._send({ provider: 'mongodb', query: { collection: 'misc', type: 'find', query: { id: 1 } } }).catch(err => { return err; });
|
|
|
|
message.reply(JSON.stringify(response));
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = PingCommand; |