mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
🐛 fix(ChatProcess.py): create a copy of the functions list to prevent modifying the original list
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user