🐛 fix(ChatProcess.py): create a copy of the functions list to prevent modifying the original list

This commit is contained in:
2023-08-23 20:16:20 +02:00
parent 9f4184b503
commit 64f8e69edc

View File

@@ -142,7 +142,7 @@ class Chat:
""" """
This function gets the response from the ai This function gets the response from the ai
""" """
funcs = functions funcs = functions.copy()
if isinstance(self.message.channel, discord.TextChannel): if isinstance(self.message.channel, discord.TextChannel):
funcs.extend(server_normal_channel_functions) funcs.extend(server_normal_channel_functions)
self.response = await request( self.response = await request(