mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Forget return boolean
This commit is contained in:
parent
519d936fd9
commit
0424fbbe0a
1 changed files with 2 additions and 0 deletions
|
|
@ -8,7 +8,9 @@ async def is_welcome(chat_id: int) -> bool:
|
|||
async def toggle_welcome(chat_id: int):
|
||||
if await is_welcome(chat_id):
|
||||
await greetingdb.delete_one({"chat_id": chat_id})
|
||||
return False
|
||||
else:
|
||||
await greetingdb.insert_one({"chat_id": chat_id})
|
||||
return True
|
||||
|
||||
# todo other features for custom welcome here
|
||||
|
|
|
|||
Loading…
Reference in a new issue