Random bs
This commit is contained in:
parent
e355d535b6
commit
b20618ad55
@ -28,7 +28,7 @@ class MariaDBProvider extends Provider {
|
||||
|
||||
connection.on('close', data => {
|
||||
// this.manager.logger.log('MariaDB connection closed.', data);
|
||||
})
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
@ -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 });
|
||||
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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: [
|
||||
{
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user