mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-07 10:31:26 +03:00
22 lines
645 B
JavaScript
22 lines
645 B
JavaScript
const { StdinCommand } = require('@eartharoid/dbf');
|
|
|
|
module.exports = class extends StdinCommand {
|
|
constructor(client, options) {
|
|
super(client, {
|
|
...options,
|
|
id: 'reload',
|
|
});
|
|
}
|
|
|
|
async run() {
|
|
this.client.log.warn('Reloading is not the same as restarting!');
|
|
this.client.log.info('Reinitialising client...');
|
|
await this.client.init(true);
|
|
this.client.log.success('Client reinitialised');
|
|
// TODO: fix this
|
|
// this.client.log.info('Reloading module components...');
|
|
// this.client.mods.forEach(mod => mod.components.forEach(component => component.reload()));
|
|
// this.client.log.success('Components reloaded');
|
|
}
|
|
};
|