From 0fc3194a5548c238064c0c598eda47815ea29562 Mon Sep 17 00:00:00 2001 From: IdiNium <47635037+idinium96@users.noreply.github.com> Date: Fri, 11 Nov 2022 17:58:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20make=20sure=20to=20also=20reset`?= =?UTF-8?q?statistics`=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/classes/Commands/sub-classes/Status.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/classes/Commands/sub-classes/Status.ts b/src/classes/Commands/sub-classes/Status.ts index 8826e27af..87cc57957 100644 --- a/src/classes/Commands/sub-classes/Status.ts +++ b/src/classes/Commands/sub-classes/Status.ts @@ -130,6 +130,11 @@ export default class StatusCommands { deletePollData(this.bot.handler.getPaths.files.dir); this.bot.sendMessage(steamID, '✅ All stats have been deleted.'); + + this.bot.handler.commands.useUpdateOptionsCommand( + steamID, + '!config statistics.lastTotalTrades=0&statistics.startingTimeInUnix=0&statistics.lastTotalProfitMadeInRef=0&statistics.lastTotalProfitOverpayInRef=0&statistics.profitDataSinceInUnix=0' + ); } catch (err) { this.bot.sendMessage(steamID, `❌ Error while deleting stats: ${JSON.stringify(err)}`); }