From 94c44c9a343bf4da948fa07c89cfb3a0f66474aa Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 10 Feb 2024 00:24:08 +0300 Subject: [PATCH] fix client --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index e2d5c23..184f092 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ security_token = os.getenv("PLATFORM_SECURITY_TOKEN") stage = os.getenv("STAGE", 'local') -platform = PlatformClient( +client = PlatformClient( security_token, 'Pizda Bot', stage, @@ -28,15 +28,15 @@ all_letters = "йцукенгшщзхъёфывапролджэячсмитьб def get_self_name(): - return platform.get_config('constants')['self_name'] + return client.get_config('constants')['self_name'] def get_answers(): - return platform.get_config('answers') + return client.get_config('answers') def get_replies(): - return platform.get_config('replies') + return client.get_config('replies') @bot.message_handler(commands=['setprobability'])