|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import asyncio |
|
import os |
|
import time |
|
from random import choice |
|
|
|
import requests |
|
from telethon import Button, events |
|
from telethon.tl import functions, types |
|
|
|
from pyUltroid import * |
|
from pyUltroid._misc._assistant import asst_cmd, callback, in_pattern |
|
from pyUltroid._misc._decorators import ultroid_cmd |
|
from pyUltroid._misc._wrappers import eod, eor |
|
from pyUltroid.dB import DEVLIST, ULTROID_IMAGES |
|
from pyUltroid.fns.helper import * |
|
from pyUltroid.fns.misc import * |
|
from pyUltroid.fns.tools import * |
|
from pyUltroid.startup._database import _BaseDatabase as Database |
|
from pyUltroid.version import __version__, ultroid_version |
|
from strings import get_help, get_string |
|
from catbox import CatboxUploader |
|
|
|
udB: Database |
|
|
|
Redis = udB.get_key |
|
con = TgConverter |
|
quotly = Quotly() |
|
OWNER_NAME = ultroid_bot.full_name |
|
OWNER_ID = ultroid_bot.uid |
|
|
|
ultroid_bot: UltroidClient |
|
asst: UltroidClient |
|
|
|
LOG_CHANNEL = udB.get_key("LOG_CHANNEL") |
|
|
|
|
|
def inline_pic(): |
|
INLINE_PIC = udB.get_key("INLINE_PIC") |
|
if INLINE_PIC is None: |
|
INLINE_PIC = choice(ULTROID_IMAGES) |
|
elif INLINE_PIC == False: |
|
INLINE_PIC = None |
|
return INLINE_PIC |
|
|
|
|
|
Telegraph = telegraph_client() |
|
cat_uploader = CatboxUploader() |
|
|
|
upload_file = cat_uploader.upload_file |
|
|
|
List = [] |
|
Dict = {} |
|
InlinePlugin = {} |
|
N = 0 |
|
cmd = ultroid_cmd |
|
STUFF = {} |
|
|
|
|
|
|
|
|
|
|
|
NOSPAM_CHAT = [ |
|
-1001361294038, |
|
-1001387666944, |
|
-1001109500936, |
|
-1001050982793, |
|
-1001256902287, |
|
-1001473548283, |
|
] |
|
|
|
KANGING_STR = [ |
|
"Using Witchery to kang this sticker...", |
|
"Plagiarising hehe...", |
|
"Inviting this sticker over to my pack...", |
|
"Kanging this sticker...", |
|
"Hey that's a nice sticker!\nMind if I kang?!..", |
|
"Hehe me stel ur stiker...", |
|
"Ay look over there (βqβ)!β\nWhile I kang this...", |
|
"Roses are red violets are blue, kanging this sticker so my pack looks cool", |
|
"Imprisoning this sticker...", |
|
"Mr.Steal-Your-Sticker is stealing this sticker... ", |
|
] |
|
|
|
|
|
ATRA_COL = [ |
|
"DarkCyan", |
|
"DeepSkyBlue", |
|
"DarkTurquoise", |
|
"Cyan", |
|
"LightSkyBlue", |
|
"Turquoise", |
|
"MediumVioletRed", |
|
"Aquamarine", |
|
"Lightcyan", |
|
"Azure", |
|
"Moccasin", |
|
"PowderBlue", |
|
] |
|
|