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

Method give_free_trial

helper/database.py:213–227  ·  view source on GitHub ↗
(self, user_id)

Source from the content-addressed store, hash-verified

211 return False
212
213 async def give_free_trial(self, user_id):
214 seconds = 720 * 60
215 expiry_time = datetime.datetime.now() + datetime.timedelta(seconds=seconds)
216 user_data = {
217 "id": user_id,
218 "expiry_time": expiry_time,
219 "has_free_trial": True
220 }
221
222 if Config.UPLOAD_LIMIT_MODE:
223 limit_type = "Trial"
224 upload_limit = 536870912000
225 await self.add_premium(user_id, user_data, upload_limit, limit_type)
226 else:
227 await self.add_premium(user_id, user_data)
228
229 async def remove_ban(self, id):
230 ban_status = dict(

Callers 1

cb_handlerFunction · 0.80

Calls 1

add_premiumMethod · 0.95

Tested by

no test coverage detected