Team Ai
Apppublic

azils3/bash

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
__init__.py106 linesDownload Raw Back to plugins
1# Ultroid - UserBot2# Copyright (C) 2021-2025 TeamUltroid3#4# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >5# PLease read the GNU Affero General Public License in6# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.7 8import asyncio9import os10import time11from random import choice12 13import requests14from telethon import Button, events15from telethon.tl import functions, types  # pylint:ignore16 17from pyUltroid import *18from pyUltroid._misc._assistant import asst_cmd, callback, in_pattern19from pyUltroid._misc._decorators import ultroid_cmd20from pyUltroid._misc._wrappers import eod, eor21from pyUltroid.dB import DEVLIST, ULTROID_IMAGES22from pyUltroid.fns.helper import *23from pyUltroid.fns.misc import *24from pyUltroid.fns.tools import *25from pyUltroid.startup._database import _BaseDatabase as Database26from pyUltroid.version import __version__, ultroid_version27from strings import get_help, get_string28from catbox import CatboxUploader29 30udB: Database31 32Redis = udB.get_key33con = TgConverter34quotly = Quotly()35OWNER_NAME = ultroid_bot.full_name36OWNER_ID = ultroid_bot.uid37 38ultroid_bot: UltroidClient39asst: UltroidClient40 41LOG_CHANNEL = udB.get_key("LOG_CHANNEL")42 43 44def inline_pic():45    INLINE_PIC = udB.get_key("INLINE_PIC")46    if INLINE_PIC is None:47        INLINE_PIC = choice(ULTROID_IMAGES)48    elif INLINE_PIC == False:49        INLINE_PIC = None50    return INLINE_PIC51 52 53Telegraph = telegraph_client()54cat_uploader = CatboxUploader()55 56upload_file = cat_uploader.upload_file57 58List = []59Dict = {}60InlinePlugin = {}61N = 062cmd = ultroid_cmd63STUFF = {}64 65# Chats, which needs to be ignore for some cases66# Considerably, there can be many67# Feel Free to Add Any other...68 69NOSPAM_CHAT = [70    -1001361294038,  # UltroidSupportChat71    -1001387666944,  # PyrogramChat72    -1001109500936,  # TelethonChat73    -1001050982793,  # Python74    -1001256902287,  # DurovsChat75    -1001473548283,  # SharingUserbot76]77 78KANGING_STR = [79    "Using Witchery to kang this sticker...",80    "Plagiarising hehe...",81    "Inviting this sticker over to my pack...",82    "Kanging this sticker...",83    "Hey that's a nice sticker!\nMind if I kang?!..",84    "Hehe me stel ur stiker...",85    "Ay look over there (☉。☉)!→\nWhile I kang this...",86    "Roses are red violets are blue, kanging this sticker so my pack looks cool",87    "Imprisoning this sticker...",88    "Mr.Steal-Your-Sticker is stealing this sticker... ",89]90 91 92ATRA_COL = [93    "DarkCyan",94    "DeepSkyBlue",95    "DarkTurquoise",96    "Cyan",97    "LightSkyBlue",98    "Turquoise",99    "MediumVioletRed",100    "Aquamarine",101    "Lightcyan",102    "Azure",103    "Moccasin",104    "PowderBlue",105]106