logging
This commit is contained in:
parent
260e3215c2
commit
aae82e2ed5
@ -43,6 +43,14 @@ class DiscordClient extends Client {
|
|||||||
|
|
||||||
this._built = true;
|
this._built = true;
|
||||||
|
|
||||||
|
this.on('ready', () => {
|
||||||
|
console.log('Client websocket is ready.');
|
||||||
|
});
|
||||||
|
|
||||||
|
this.registry.on('componentUpdate', (comp, type) => {
|
||||||
|
console.log(`[registry][${type}] ${comp.resolveable}`)
|
||||||
|
});
|
||||||
|
|
||||||
console.log('Client built');
|
console.log('Client built');
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -54,4 +62,8 @@ class DiscordClient extends Client {
|
|||||||
module.exports = DiscordClient;
|
module.exports = DiscordClient;
|
||||||
|
|
||||||
const client = new DiscordClient(options);
|
const client = new DiscordClient(options);
|
||||||
client.build();
|
client.build();
|
||||||
|
|
||||||
|
process.on("unhandledRejection", (error) => {
|
||||||
|
console.error("Unhandled promise rejection:", error); //eslint-disable-line no-console
|
||||||
|
});
|
@ -56,8 +56,6 @@ class Registry extends EventEmitter {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(directory);
|
|
||||||
|
|
||||||
if(directory) component.directory = directory;
|
if(directory) component.directory = directory;
|
||||||
if(component.module && typeof component.module === 'string') { //Sets modules or "groups" for each component, specified by their properties.
|
if(component.module && typeof component.module === 'string') { //Sets modules or "groups" for each component, specified by their properties.
|
||||||
let module = this.components.get(`module:${component.module}`);
|
let module = this.components.get(`module:${component.module}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user