From 3f3b36cd4afe6b49901cbf9c845ea788a9dc6482 Mon Sep 17 00:00:00 2001 From: Juni Date: Mon, 5 Dec 2022 13:57:33 -0500 Subject: [PATCH] Update --- chatGpt/chatgpt.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/chatGpt/chatgpt.py b/chatGpt/chatgpt.py index 2c7442e..71757d1 100644 --- a/chatGpt/chatgpt.py +++ b/chatGpt/chatgpt.py @@ -10,16 +10,17 @@ class ChatGpt(commands.Cog): async def __init__(self, bot): self.bot = bot + + @commands.command() + async def testchat(self, ctx: commands.Context): + """Test""" + email = await self.bot.get_shared_api_tokens("openai", "email") password = await self.bot.get_shared_api_tokens("openai", "password") self.config = { "email": email, "password": password, } - - @commands.command() - async def testchat(self, ctx: commands.Context): - """Test""" await ctx.send(f"email {self.config.email}, password {self.config.password}") \ No newline at end of file