From f64c5f8cf7becbb3372a58a1e8fbd1890959e94a Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Mon, 27 Mar 2023 02:27:37 +0300 Subject: [PATCH] Added the ability to check the balance --- src/main/java/dev/struchkov/example/bot/unit/BalanceUnit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/struchkov/example/bot/unit/BalanceUnit.java b/src/main/java/dev/struchkov/example/bot/unit/BalanceUnit.java index 478ab80..e36ce02 100644 --- a/src/main/java/dev/struchkov/example/bot/unit/BalanceUnit.java +++ b/src/main/java/dev/struchkov/example/bot/unit/BalanceUnit.java @@ -44,7 +44,7 @@ public class BalanceUnit implements PersonUnitConfiguration { } ) .answer(() -> { - final TotalUsageResponse totalUsage = openAIClient.getTotalUsage(); + final TotalUsageResponse totalUsage = openAIClient.getTotalUsageInThisMount(); final double balance = totalUsage.getTotalUsage() / 100; return boxAnswer("Used in this month: $" + balance); })