mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Ok fixed
This commit is contained in:
parent
ded5b96a96
commit
20d89f3e2c
1 changed files with 2 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ from psutil import boot_time, disk_usage, net_io_counters
|
||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
from asyncio import to_thread, subprocess, create_subprocess_shell
|
from asyncio import to_thread, subprocess, create_subprocess_shell
|
||||||
from apscheduler.triggers.date import DateTrigger
|
from apscheduler.triggers.date import DateTrigger
|
||||||
|
from pytz import timezone as zones
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|
||||||
api = FastAPI()
|
api = FastAPI()
|
||||||
|
|
@ -45,7 +46,7 @@ async def autopay(request: Request):
|
||||||
raise HTTPException(status_code=403, detail="Invalid Signature")
|
raise HTTPException(status_code=403, detail="Invalid Signature")
|
||||||
unique_code = data['unique_code']
|
unique_code = data['unique_code']
|
||||||
status = data['status']
|
status = data['status']
|
||||||
exp_date = (datetime.now(jkt) + timedelta(days=30)).strftime("%Y-%m-%d %H:%M:%S")
|
exp_date = (datetime.now(zones("Asia/Jakarta")) + timedelta(days=30)).strftime("%Y-%m-%d %H:%M:%S")
|
||||||
r = await get_autopay(unique_code)
|
r = await get_autopay(unique_code)
|
||||||
msg = f"╭────〔 <b>TRANSAKSI SUKSES🎉</b> 〕──\n│・ <b>Transaksi ID :</b> {unique_code}\n│・ <b>Product :</b> MissKaty Support by YS Dev\n│・ <b>Durasi :</b> 30 hari\n│・ <b>Total Dibayar :</b> {r.get('amount')}\n│・ Langganan Berakhir: {exp_date}\n╰─────────"
|
msg = f"╭────〔 <b>TRANSAKSI SUKSES🎉</b> 〕──\n│・ <b>Transaksi ID :</b> {unique_code}\n│・ <b>Product :</b> MissKaty Support by YS Dev\n│・ <b>Durasi :</b> 30 hari\n│・ <b>Total Dibayar :</b> {r.get('amount')}\n│・ Langganan Berakhir: {exp_date}\n╰─────────"
|
||||||
if not r:
|
if not r:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue