fix client

This commit is contained in:
Administrator 2024-02-10 00:24:08 +03:00
parent ef296a599c
commit 94c44c9a34

View File

@ -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'])