mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix lint
This commit is contained in:
@@ -28,8 +28,8 @@ module.exports = class Registry {
|
||||
const commands = fs.readdirSync(path.join(dir, group));
|
||||
for (const command of commands) {
|
||||
if (!command.endsWith('.js')) continue;
|
||||
const required = require(path.join(dir, group, command));
|
||||
this.registerCommand(new required(this.client));
|
||||
const Required = require(path.join(dir, group, command));
|
||||
this.registerCommand(new Required(this.client));
|
||||
}
|
||||
}
|
||||
return this;
|
||||
@@ -62,8 +62,8 @@ module.exports = class Registry {
|
||||
const types = fs.readdirSync(dir);
|
||||
for (const type of types) {
|
||||
if (!type.endsWith('.js')) continue;
|
||||
const required = require(path.join(dir, type));
|
||||
this.registerType(new required(this.client));
|
||||
const Required = require(path.join(dir, type));
|
||||
this.registerType(new Required(this.client));
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user