fixed bug in personality setting
This commit is contained in:
parent
5256930ebe
commit
ac5da8dd27
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue