galactic-bot/structure/client/components/commands/utility/TestStorage.js
2020-04-14 18:05:56 +03:00

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;