From 0302d8c1ae58cb452854eb67c495f4a226386365 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Fri, 23 Dec 2022 01:40:07 +0100 Subject: [PATCH] Removed unused --- modules/commands/sponsorship.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/modules/commands/sponsorship.py b/modules/commands/sponsorship.py index 7665dc7..930f93f 100644 --- a/modules/commands/sponsorship.py +++ b/modules/commands/sponsorship.py @@ -1,4 +1,3 @@ -from datetime import datetime from app import app, isAnAdmin from pyrogram import filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton @@ -12,17 +11,4 @@ async def cmd_sponsorship(app, msg): await msg.reply_text(locale("sponsorship_apply", "message"), reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text=str(locale("sponsor_apply", "button")), callback_data=f"sponsor_apply_{msg.from_user.id}")]]), quote=should_quote(msg)) else: await msg.reply_text(locale("sponsorship_application_empty", "message")) - # if not path.exists(f"{configGet('data', 'locations')}{sep}sponsors{sep}{msg.from_user.id}.json"): - # jsonSave(jsonLoad(f"{configGet('data', 'locations')}{sep}sponsor_default.json"), f"{configGet('data', 'locations')}{sep}sponsors{sep}{msg.from_user.id}.json") - # sponsor = jsonLoad(f"{configGet('data', 'locations')}{sep}sponsors{sep}{msg.from_user.id}.json") - # if sponsor["approved"]: - # if sponsor["expires"] is not None: - # if datetime.strptime(sponsor["expires"], "%d.%m.%Y") > datetime.now(): - # await msg.reply_text(f"You have an active sub til **{sponsor['expires']}**.") - # else: - # await msg.reply_text(f"Your sub expired {int((datetime.now()-datetime.strptime(sponsor['expires'], '%d.%m.%Y')).days)} days ago.") - # elif sponsor["approved"]: - # await msg.reply_text(f"Your sub expiration date is not valid.") - # else: - # await msg.reply_text(f"You have no active subscription.") # ============================================================================================================================== \ No newline at end of file