From 64f8e69edcfb0d7da5924517ecbd40234cdbf2b1 Mon Sep 17 00:00:00 2001 From: Paillat Date: Wed, 23 Aug 2023 20:16:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ChatProcess.py):=20create=20?= =?UTF-8?q?a=20copy=20of=20the=20functions=20list=20to=20prevent=20modifyi?= =?UTF-8?q?ng=20the=20original=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ChatProcess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChatProcess.py b/src/ChatProcess.py index 6b8ef93..5aeafcb 100644 --- a/src/ChatProcess.py +++ b/src/ChatProcess.py @@ -142,7 +142,7 @@ class Chat: """ This function gets the response from the ai """ - funcs = functions + funcs = functions.copy() if isinstance(self.message.channel, discord.TextChannel): funcs.extend(server_normal_channel_functions) self.response = await request(