MCPcopy Create free account
hub / github.com/VJBots/VJ-Forward-Bot / is_bot_exist

Method is_bot_exist

database.py:120–122  ·  view source on GitHub ↗
(self, user_id)

Source from the content-addressed store, hash-verified

118 return bot if bot else None
119
120 async def is_bot_exist(self, user_id):
121 bot = await self.bot.find_one({'user_id': user_id})
122 return bool(bot)
123
124 async def add_userbot(self, datas):
125 if not await self.is_userbot_exist(datas['user_id']):

Callers 1

add_botMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected