keyword some stuff

Kaveen Kumarasinghe 2 years ago
parent 051fc3a2ff
commit 48c9092558

@ -967,12 +967,12 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
response_message = (
await ctx.respond(
response_text,
view=ConversationView(ctx, self, ctx.channel.id, custom_api_key),
view=ConversationView(ctx, self, ctx.channel.id, custom_api_key=custom_api_key),
)
if from_context
else await ctx.reply(
response_text,
view=ConversationView(ctx, self, ctx.channel.id, custom_api_key),
view=ConversationView(ctx, self, ctx.channel.id, custom_api_key=custom_api_key),
)
)
@ -1438,7 +1438,7 @@ class ConversationView(discord.ui.View):
self.converser_cog = converser_cog
self.ctx = ctx
self.custom_api_key= custom_api_key
self.add_item(RedoButton(self.converser_cog, self.custom_api_key))
self.add_item(RedoButton(self.converser_cog, custom_api_key=self.custom_api_key))
if id in self.converser_cog.conversation_threads:
self.add_item(EndConvoButton(self.converser_cog))

@ -148,8 +148,8 @@ class OptimizeView(discord.ui.View):
self.image_service_cog = image_service_cog
self.deletion_queue = deletion_queue
self.custom_api_key = custom_api_key
self.add_item(RedoButton(self.cog, self.image_service_cog, self.deletion_queue, self.custom_api_key))
self.add_item(DrawButton(self.cog, self.image_service_cog, self.deletion_queue, self.custom_api_key))
self.add_item(RedoButton(self.cog, self.image_service_cog, self.deletion_queue, custom_api_key=self.custom_api_key))
self.add_item(DrawButton(self.cog, self.image_service_cog, self.deletion_queue, custom_api_key=self.custom_api_key))
class DrawButton(discord.ui.Button["OptimizeView"]):

Loading…
Cancel
Save