# Ayiin - Userbot
# Copyright (C) 2022-2023 @AyiinXd
#
# This file is a part of < https://github.com/AyiinXd/Ayiin-Userbot >
# PLease read the GNU Affero General Public License in
# .
#
# FROM Ayiin-Userbot
# t.me/AyiinXdSupport & t.me/AyiinSupport
# ========================ร========================
# Jangan Hapus Credit Ngentod
# ========================ร========================
import time
from datetime import datetime
from secrets import choice
from xteam.dB import devs
from telethon.tl.types import User
from xteam._misc import sudoers
from . import ultroid_cmd as ayiinCmd
from . import (
ATRA_COL,
LOGS,
OWNER_NAME,
ULTROID_IMAGES,
Button,
Carbon,
Telegraph,
Var,
allcmds,
asst,
bash,
call_back,
callback,
def_logs,
eor,
get_string,
heroku_logs,
in_pattern,
inline_pic,
restart,
shutdown,
start_time,
time_formatter,
udB,
ultroid_version,
updater,
)
absen = [
"**๐๐๐๐๐ง ๐๐ค๐ฃ๐ ๐๐ค๐** ๐",
"**๐๐๐๐๐ง ๐๐๐ ๐ ๐๐๐ฃ๐ฉ๐๐ฃ๐** ๐",
"**๐๐ช๐ ๐๐๐๐๐ง ๐พ๐ค๐ฃ๐ฉ๐ค๐ก** ๐",
"**๐๐ช๐ ๐๐๐๐๐ง ๐๐๐ฃ๐ฉ๐๐ฃ๐** ๐ฅต",
"**๐๐๐๐๐ง ๐๐๐๐** ๐",
"**๐๐ช๐ ๐๐๐๐๐ง ๐ผ๐๐๐ฃ๐** ๐ฅบ",
"**๐๐ ๐พ๐๐ ๐๐ฅ ๐๐๐๐๐ง ๐ฝ๐๐ฃ๐** ๐",
]
ayiincakep = [
"**๐๐ฎ๐ ๐๐๐ฃ๐ฉ๐๐ฃ๐ ๐ฝ๐๐ฃ๐๐๐ฉ** ๐",
"**๐๐๐ฃ๐ฉ๐๐ฃ๐๐ฃ๐ฎ๐ ๐๐๐ ๐ผ๐๐ ๐๐๐ฌ๐๐ฃ** ๐",
"**๐ ๐๐ข๐ช ๐๐๐ฃ๐ฉ๐๐ฃ๐๐ฃ๐ฎ๐ ๐ผ๐ ๐ช ๐๐๐ฃ** ๐",
"**๐๐ฎ๐๐ ๐๐๐๐ ๐๐๐ ๐จ๐๐๐ฃ๐** ๐",
"**๐ ๐๐ข๐ช ๐๐๐ข๐๐ฉ ๐๐๐ฅ๐ ๐ฝ๐ค๐ค๐ฃ๐** ๐",
]
@ayiinCmd("cping$", devs=True)
async def _(ping):
start = time.time()
x = await ping.eor("Pong !")
end = round((time.time() - start) * 1000)
uptime = time_formatter((time.time() - start_time) * 1000)
user = await ping.client.get_me()
message = "**โง แดสษชษชษด-แดsแดสสแดแด โง**\n\nโง **แดษชษดษขแดส :** `{} ms`\nโง **แดแดแดษชแดแด :** `{}`\nโง **แดแดกษดแดส :** `{}`\nโง **ษชแด
:** `{}`"
await ping.reply(
message.format(
end,
uptime,
user.first_name,
user.id
)
)
# KALO NGEFORK absen ini GA USAH DI HAPUS YA GOBLOK ๐ก
# JANGAN DI HAPUS GOBLOK ๐ก LU COPY AJA TINGGAL TAMBAHIN
# DI HAPUS GUA GBAN YA ๐ฅด GUA TANDAIN LU AKUN TELENYA ๐ก
# Absen by : mrismanaziz
@ayiinCmd("absen$", devs=True)
async def ayiinabsen(ganteng):
await ganteng.reply(choice(absen))
@ayiinCmd("Aku ganteng kan$", devs=True)
async def ayiin(ganteng):
await ganteng.reply(choice(ayiincakep))
# ========================ร========================
# Jangan Hapus Credit Ngentod
# ========================ร========================