MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / remove_ban

Method remove_ban

helper/database.py:229–236  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

227 await self.add_premium(user_id, user_data)
228
229 async def remove_ban(self, id):
230 ban_status = dict(
231 is_banned=False,
232 ban_duration=0,
233 banned_on=datetime.date.max.isoformat(),
234 ban_reason=''
235 )
236 await self.col.update_one({'_id': int(id)}, {'$set': {'ban_status': ban_status}})
237
238 async def ban_user(self, user_id, ban_duration, ban_reason):
239 ban_status = dict(

Callers 2

_Function · 0.80
unbanFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected