From 4eb33a3c0a874e7f2bf83d6712a5a571381714cf Mon Sep 17 00:00:00 2001 From: Kumi Date: Tue, 5 Dec 2023 08:36:21 +0100 Subject: [PATCH] Fix allowed_users property in GPTBot Resolved a syntax error in the allowed_users property within the GPTBot class by adding the missing 'self' parameter. This correction ensures the proper functioning of the property method, enabling the bot to correctly retrieve the list of users authorized to use it. --- src/gptbot/classes/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gptbot/classes/bot.py b/src/gptbot/classes/bot.py index bd12bb6..7bbc13b 100644 --- a/src/gptbot/classes/bot.py +++ b/src/gptbot/classes/bot.py @@ -89,7 +89,7 @@ class GPTBot: # Properties @property - def allowed_users() -> List[str]: + def allowed_users(self) -> List[str]: """List of users allowed to use the bot. Returns: