Skip to content

Commit

Permalink
🔨 make sure to also resetstatistics options
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Nov 11, 2022
1 parent 24facc3 commit 0fc3194
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/classes/Commands/sub-classes/Status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);
}
Expand Down

0 comments on commit 0fc3194

Please sign in to comment.