From ac5da8dd27e4eef728d091f9c25b3c0412af48ef Mon Sep 17 00:00:00 2001 From: phixxy Date: Thu, 15 Feb 2024 14:50:51 -0800 Subject: [PATCH] fixed bug in personality setting --- cogs/chatgpt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/chatgpt.py b/cogs/chatgpt.py index 09a3ccc..7eff4f2 100644 --- a/cogs/chatgpt.py +++ b/cogs/chatgpt.py @@ -115,8 +115,9 @@ class ChatGPT(commands.Cog): help="Set the personality of the bot. Usage: !personality (personality)", brief="Set the personality" ) - async def personality(self, ctx, personality_type=None): + async def personality(self, ctx, *personality_type): if personality_type: + personality_type = ' '.join(personality_type) self.edit_channel_config(ctx.channel.id, "personality", personality_type) await ctx.send(f"Personality changed to {personality_type}") else: