debug
This commit is contained in:
parent
0368e69119
commit
b6c0be0d00
4
main.py
4
main.py
@ -68,6 +68,10 @@ def do_action(message: Message):
|
|||||||
bot.reply_to(message, choice(get_replies()))
|
bot.reply_to(message, choice(get_replies()))
|
||||||
return
|
return
|
||||||
info = get_chat_info(message.chat.id)
|
info = get_chat_info(message.chat.id)
|
||||||
|
if message.text == '#debug' and client.is_staff(telegram_id=message.from_user.id):
|
||||||
|
bot.send_message(message.chat.id, f'chat id: {message.chat.id}\n'
|
||||||
|
f'probability: {info["probability"]}')
|
||||||
|
return
|
||||||
if info['state'] == "set_probability":
|
if info['state'] == "set_probability":
|
||||||
try:
|
try:
|
||||||
value = int(message.text)
|
value = int(message.text)
|
||||||
|
Loading…
Reference in New Issue
Block a user