-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca38235
commit 30cd541
Showing
6 changed files
with
113 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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'); | ||
} | ||
}; |
Empty file.