mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06: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
|
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user