Random bs

This commit is contained in:
Erik 2020-05-21 11:51:44 +03:00
parent e355d535b6
commit b20618ad55
5 changed files with 11 additions and 11 deletions

View File

@ -28,7 +28,7 @@ class MariaDBProvider extends Provider {
connection.on('close', data => {
// this.manager.logger.log('MariaDB connection closed.', data);
})
});
});

View File

@ -42,7 +42,7 @@ class MongoDBProvider extends Provider {
if (!this._initialized) return { error: true, message: 'MongoDB not connected' };
if (!this[request.type]) return { error: true, message: `Invalid request type, got '${request.type}'` };
if (!request.collection && request.type !== 'stats') return { error: true, message: `You must specify a collection to query!` };
if (!request.collection && request.type !== 'stats') return { error: true, message: 'You must specify a collection to query!' };
return this[request.type](request);
@ -64,11 +64,11 @@ class MongoDBProvider extends Provider {
this.db.stats(options, (error, stats) => {
if (err) return reject(err);
if (error) return reject(error);
else {
let { db, collections, objects, averageSize: avgObjSize, dataSize } = stats;
return resolve({ db, collections, objects, averageSize, dataSize });
return resolve({ db, collections, objects, averageSize: avgObjSize, dataSize });
}
@ -81,8 +81,8 @@ class MongoDBProvider extends Provider {
if (err) return reject(err);
else {
let { index: ns, size, count, averageSize: avgObjSize } = stats;
return resolve({ index, size, count, averageSize });
let { ns, size, count, averageSize: avgObjSize } = stats;
return resolve({ index: ns, size, count, averageSize: avgObjSize });
}

View File

@ -25,13 +25,13 @@ class Evaluate extends Command {
name: 'log',
type: 'BOOLEAN',
types: ['FLAG'],
description: "Logs the output in the console."
description: 'Logs the output in the console.'
},
{
name: 'hide',
type: 'BOOLEAN',
types: ['FLAG'],
description: "Hides the output from the channel."
description: 'Hides the output from the channel.'
}
],
showUsage: true

View File

@ -8,7 +8,7 @@ class UserCommand extends Command {
super(client, {
name: 'user',
module: 'utility',
description: "Display information about user.",
description: 'Display information about user.',
guildOnly: true,
arguments: [
{

View File

@ -1,7 +1,7 @@
const { Inhibitor } = require('../../../interfaces/');
const { stripIndents } = require('common-tags');
class GuildOnly extends Inhibitor {
class Throttle extends Inhibitor {
constructor(client) {
@ -47,4 +47,4 @@ class GuildOnly extends Inhibitor {
}
module.exports = GuildOnly;
module.exports = Throttle;