Skip to content

Commit

Permalink
refactor: replaced commands with command handler (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolfx committed Jan 17, 2023
1 parent 463246e commit 1e6f66d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classes/Bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ export default class Bot {
void sendStats(this);
} else {
this.getAdmins.forEach(admin => {
this.handler.commands.useStatsCommand(admin);
this.handler.commandHandler.useStatsCommand(admin);
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/classes/Commands/sub-classes/Status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default class StatusCommands {

this.bot.sendMessage(steamID, '✅ All stats have been deleted.');

this.bot.handler.commands.useUpdateOptionsCommand(
this.bot.handler.commandHandler.useUpdateOptionsCommand(
steamID,
'!config statistics.lastTotalTrades=0&statistics.startingTimeInUnix=0&statistics.lastTotalProfitMadeInRef=0&statistics.lastTotalProfitOverpayInRef=0&statistics.profitDataSinceInUnix=0'
);
Expand Down

0 comments on commit 1e6f66d

Please sign in to comment.