From 6097ee141529296fe89cfa3bd29538db86115c1f Mon Sep 17 00:00:00 2001 From: phixxy Date: Sat, 16 Mar 2024 00:42:58 -0700 Subject: [PATCH] changed budget type to float instead of string --- cogs/chatgpt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/chatgpt.py b/cogs/chatgpt.py index bbddda0..717811d 100644 --- a/cogs/chatgpt.py +++ b/cogs/chatgpt.py @@ -128,13 +128,13 @@ class ChatGPT(commands.Cog): try: if ctx.author.id == self.admin_id: if command == "add" and budget!= None: - self.dalle_budget += budget + self.dalle_budget += float(budget) await ctx.send(f"Budget increased by {budget}") elif command == "remove" and budget!= None: - self.dalle_budget -= budget + self.dalle_budget -= float(budget) await ctx.send(f"Budget decreased by {budget}") elif command == "set" and budget!= None: - self.dalle_budget = budget + self.dalle_budget = float(budget) await ctx.send(f"Budget set to {budget}") else: await ctx.send(f"The current budget is {self.dalle_budget}")