mirror of
https://github.com/reality/dbot.git
synced 2024-12-04 18:09:30 +01:00
save before reload
This commit is contained in:
parent
a10a6bf9e6
commit
55ff01a618
2
run.js
2
run.js
@ -125,6 +125,8 @@ DBot.prototype.save = function() {
|
|||||||
|
|
||||||
// Hot-reload module files.
|
// Hot-reload module files.
|
||||||
DBot.prototype.reloadModules = function() {
|
DBot.prototype.reloadModules = function() {
|
||||||
|
this.save();
|
||||||
|
|
||||||
if(this.modules) { // Run 'onDestroy' code for each module if it exists.
|
if(this.modules) { // Run 'onDestroy' code for each module if it exists.
|
||||||
_.each(this.modules, function(module) {
|
_.each(this.modules, function(module) {
|
||||||
if(module.onDestroy) {
|
if(module.onDestroy) {
|
||||||
|
Loading…
Reference in New Issue
Block a user