From 34f1f48c45a5d8d671343f860f05f5baf226cdda Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Sat, 2 Oct 2021 12:33:51 +0300 Subject: [PATCH] remove config save, its unnecessary --- discord/plugin.json | 2 +- discord/plugin.ts | 5 ++--- squeebot.repo.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/discord/plugin.json b/discord/plugin.json index 41998e9..92fbc30 100644 --- a/discord/plugin.json +++ b/discord/plugin.json @@ -2,7 +2,7 @@ "main": "plugin.js", "name": "discord", "description": "Discord Service for Squeebot 3", - "version": "1.2.2", + "version": "1.2.3", "tags": ["service", "discord"], "dependencies": ["control?"], "npmDependencies": ["discord.js@^13.1.0"] diff --git a/discord/plugin.ts b/discord/plugin.ts index f34aae3..333282a 100644 --- a/discord/plugin.ts +++ b/discord/plugin.ts @@ -407,9 +407,8 @@ class DiscordServicePlugin extends Plugin { @EventListener('pluginUnload') public unloadEventHandler(plugin: string | Plugin): void { if (plugin === this.name || plugin === this) { - this.config.save().then(() => - this.service?.stopAll().then(() => - this.emit('pluginUnloaded', this))); + this.service?.stopAll().then(() => + this.emit('pluginUnloaded', this)); } } } diff --git a/squeebot.repo.json b/squeebot.repo.json index 67a7fb8..0543aac 100644 --- a/squeebot.repo.json +++ b/squeebot.repo.json @@ -3,7 +3,7 @@ "plugins": [ { "name": "discord", - "version": "1.2.2" + "version": "1.2.3" } ], "typescript": true