fixed bug in personality setting

This commit is contained in:
phixxy 2024-02-15 14:50:51 -08:00
parent 5256930ebe
commit ac5da8dd27

View file

@ -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: