forked from Pavel_Durov/python_bot
меньше кода - лучше!
This commit is contained in:
parent
ecbe419abb
commit
c8a9936a00
@ -161,7 +161,7 @@ async def send_topchat(message: types.Message):
|
||||
glob_ = False
|
||||
dicks_collection = get_dicks_collection()
|
||||
|
||||
if message['text'] == '/topdick':
|
||||
if message['text'].statswith('/topdick'):
|
||||
top_ = True
|
||||
try:
|
||||
dicks = dicks_collection.find({'chat_id': message.chat.id}, skip=0, limit=1100)
|
||||
@ -169,7 +169,7 @@ async def send_topchat(message: types.Message):
|
||||
except Exception as e:
|
||||
print('ошибка DB в /topdick')
|
||||
print(e)
|
||||
elif message['text'] == '/globaldick':
|
||||
elif message['text'].statswith('/globaldick'):
|
||||
glob_ = True
|
||||
try:
|
||||
dicks = dicks_collection.all( )
|
||||
|
Loading…
Reference in New Issue
Block a user