MCPcopy Create free account
hub / github.com/TechifyBots/File-Stream-Bot / is_unbanned

Method is_unbanned

biisal/utils/database.py:60–70  ·  view source on GitHub ↗
(self , user_id)

Source from the content-addressed store, hash-verified

58 return True if user else False
59
60 async def is_unbanned(self , user_id):
61 try :
62 if await self.bannedList.find_one({'banId' : int(user_id)}):
63 await self.bannedList.delete_one({'banId' : int(user_id)})
64 return True
65 else:
66 return False
67 except Exception as e:
68 e = f'Fᴀɪʟᴇᴅ ᴛᴏ ᴜɴʙᴀɴ.Rᴇᴀsᴏɴ : {e}'
69 print(e)
70 return e

Callers 1

do_unbanFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected