remove config save, its unnecessary
This commit is contained in:
parent
5ad6352a83
commit
216108cf1b
@ -3,7 +3,7 @@
|
||||
"name": "permissions",
|
||||
"description": "Official permissions system for commands",
|
||||
"tags": ["api", "permissions"],
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"dependencies": ["control?"],
|
||||
"npmDependencies": []
|
||||
}
|
||||
|
@ -113,8 +113,7 @@ class PermissionsPlugin extends Plugin {
|
||||
unloadEventHandler(plugin: string | Plugin): void {
|
||||
if (plugin === this.name || plugin === this) {
|
||||
logger.debug('[%s]', this.name, 'shutting down..');
|
||||
this.config.save().then(() =>
|
||||
this.emit('pluginUnloaded', this));
|
||||
this.emit('pluginUnloaded', this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "simplecommands",
|
||||
"description": "Official Simplistic Commands API for Squeebot 3",
|
||||
"tags": ["handler", "commands", "api"],
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"dependencies": ["control?", "permissions?"],
|
||||
"npmDependencies": []
|
||||
}
|
||||
|
@ -523,8 +523,7 @@ class SqueebotCommandsAPIPlugin extends Plugin {
|
||||
unloadEventHandler(plugin: string | Plugin): void {
|
||||
if (plugin === this.name || plugin === this) {
|
||||
logger.debug('[%s] shutting down..', this.name);
|
||||
this.config.save().then(() =>
|
||||
this.emit('pluginUnloaded', this));
|
||||
this.emit('pluginUnloaded', this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11,15 +11,15 @@
|
||||
},
|
||||
{
|
||||
"name": "permissions",
|
||||
"version": "0.1.0"
|
||||
"version": "0.1.1"
|
||||
},
|
||||
{
|
||||
"name": "simplecommands",
|
||||
"version": "1.1.1"
|
||||
"version": "1.1.2"
|
||||
},
|
||||
{
|
||||
"name": "xprotocol",
|
||||
"version": "1.0.0"
|
||||
"version": "1.0.1"
|
||||
}
|
||||
],
|
||||
"typescript": true
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "xprotocol",
|
||||
"description": "API for sending messages to other protocols",
|
||||
"tags": ["messages", "relaying", "api"],
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"dependencies": ["control?"],
|
||||
"npmDependencies": []
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ class XProtocolPlugin extends Plugin {
|
||||
this.on('send', (data: any[]) => {
|
||||
const target = data[0];
|
||||
this.sendTo(target, ...data.slice(1)).catch((error: Error) => {
|
||||
logger.error(`[sendto] Sending to protocol from event failed:`, error.message ?? error);
|
||||
logger.error(`[xprotocol] Sending to protocol from event failed:`, error.message ?? error);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user