From 25c616b99b14057386b60ec9acd3131dd9d31992 Mon Sep 17 00:00:00 2001 From: phixxy Date: Thu, 15 Feb 2024 16:29:51 -0800 Subject: [PATCH] channel topic fix --- cogs/chatgpt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/chatgpt.py b/cogs/chatgpt.py index 7eff4f2..9a79538 100644 --- a/cogs/chatgpt.py +++ b/cogs/chatgpt.py @@ -131,8 +131,9 @@ class ChatGPT(commands.Cog): help="Set the channel topic for the bot. Usage: !topic (topic)", brief="Set channel topic" ) - async def topic(self, ctx, channel_topic=None): + async def topic(self, ctx, *channel_topic): if channel_topic: + channel_topic = ' '.join(channel_topic) self.edit_channel_config(ctx.channel.id, "channel_topic", channel_topic) await ctx.send(f"Topic changed to {channel_topic}") else: