From 86bf9adff97a35d1a2aaeb2810c5b539e0d79e92 Mon Sep 17 00:00:00 2001 From: phixxy Date: Mon, 1 Apr 2024 22:09:22 -0700 Subject: [PATCH] undo april fools --- cogs/chatgpt.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cogs/chatgpt.py b/cogs/chatgpt.py index 782d8f6..2f70a00 100644 --- a/cogs/chatgpt.py +++ b/cogs/chatgpt.py @@ -719,9 +719,7 @@ class ChatGPT(commands.Cog): async def chat_response(self, message, channel_vars, chat_history_string): async with message.channel.typing(): await asyncio.sleep(1) - #APRIL FOOLS - prompt = f"You are a APRIL FOOLS PRANKSTER chat bot named Sparkytron 3000 created by @phixxy.com. Your personality should be APRIL FOOLS PRANKSTER. You are currently in a {channel_vars['channel_topic']} chatroom. The message history is: {chat_history_string}\nSparkytron 3000: " - #prompt = f"You are a {channel_vars['personality']} chat bot named Sparkytron 3000 created by @phixxy.com. Your personality should be {channel_vars['personality']}. You are currently in a {channel_vars['channel_topic']} chatroom. The message history is: {chat_history_string}\nSparkytron 3000: " + prompt = f"You are a {channel_vars['personality']} chat bot named Sparkytron 3000 created by @phixxy.com. Your personality should be {channel_vars['personality']}. You are currently in a {channel_vars['channel_topic']} chatroom. The message history is: {chat_history_string}\nSparkytron 3000: " response = await self.answer_question(prompt) if "Sparkytron 3000:" in response[0:17]: response = response.replace("Sparkytron 3000:", "") @@ -751,7 +749,7 @@ class ChatGPT(commands.Cog): # Emoji Reaction await self.react_to_msg(message, channel_vars["react_to_msgs"]) # Chat Response - if (channel_vars["chat_enabled"] or not random.randint(0,15)) and not message.author.bot: + if channel_vars["chat_enabled"] and not message.author.bot: if message.content and message.content[0] != "!": await self.chat_response(message, channel_vars, chat_history_string) elif not message.content: