From 425f12e3d26b70019dc62097a9e4c1f2bf8eb225 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 18 Jan 2022 16:47:20 +0800 Subject: [PATCH] Apply CVE --- acg-multi.py | 1 + aff.py | 1 + antichannelmsg.py | 2 +- antichannelpin.py | 2 +- antisticker.py | 2 +- atadmins_atall.py | 1 + autochangename.py | 2 +- autodel.py | 2 +- autoreplysticker.py | 2 +- autorespond.py | 2 +- autorm.py | 1 + bc.py | 1 + bin.py | 4 +- bingwall.py | 1 + calculator.py | 1 + chatbot.py | 4 +- cosplay-multi.py | 1 + covid-en.py | 1 + covid.py | 2 +- crazy4.py | 1 + da.py | 2 +- dc.py | 62 +++++++++++++++ deletemsgsfromgrps.py | 1 + denyu.py | 2 +- diss.py | 1 + diy.py | 1 + dme.py | 1 + eat.py | 2 +- epic.py | 1 + findmessage.py | 2 +- forcegroup.py | 2 +- forcesend.py | 1 + forcesubscribe.py | 2 +- fuck.py | 1 + fuckadmin.py | 1 + fuckmember.py | 1 + fuckmessage.py | 2 +- fucksticker.py | 2 +- getstickers.py | 2 +- getstickerset.py | 2 +- ghs.py | 1 + groupindex.py | 1 + groupword.py | 1 + hyperlink.py | 1 + jd_cmd.py | 1 + keyword.py | 2 +- kickanddm.py | 2 +- killallmembers.py | 1 + kongge.py | 1 + list.json | 180 ++++++++++++++++++++++-------------------- listusernames.py | 2 +- meizi.py | 1 + mjx.py | 1 + moyu.py | 2 +- netease.py | 1 + neteasedown.py | 1 + neteasemusic.py | 2 +- neteaseshuffle.py | 1 + nthmsg.py | 1 + paolu.py | 1 + pic2sticker.py | 2 +- pl.py | 1 + portball.py | 2 +- rape.py | 1 + rate.py | 2 +- repeat.py | 2 +- resou.py | 1 + sendat.py | 2 +- shangliu.py | 1 + shift.py | 2 +- square.py | 2 + stickertopic.py | 2 +- tel.py | 1 + throwit.py | 1 + transfer.py | 2 +- unbanby.py | 1 + videodl.py | 2 +- vip.py | 2 +- weather.py | 1 + whois.py | 1 + xjj.py | 1 + xtao-some.py | 2 +- yb-dl.py | 2 +- yinglish.py | 2 +- yvlu.py | 2 +- yyr.py | 1 + zpr.py | 1 + 87 files changed, 247 insertions(+), 124 deletions(-) create mode 100644 dc.py diff --git a/acg-multi.py b/acg-multi.py index 2a498dc..20b8516 100644 --- a/acg-multi.py +++ b/acg-multi.py @@ -1,6 +1,7 @@ import json import random import requests +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command from os import remove diff --git a/aff.py b/aff.py index c9e94e8..ad934f6 100644 --- a/aff.py +++ b/aff.py @@ -1,6 +1,7 @@ from time import sleep from os.path import exists from os import mkdir, remove +from pagermaid import version from pagermaid.utils import alias_command from pagermaid.listener import listener diff --git a/antichannelmsg.py b/antichannelmsg.py index 45acdd2..ef4a186 100644 --- a/antichannelmsg.py +++ b/antichannelmsg.py @@ -2,7 +2,7 @@ from telethon.errors import ChatAdminRequiredError from telethon.tl.types import Channel, ChatBannedRights from telethon.tl.functions.channels import GetFullChannelRequest, EditBannedRequest -from pagermaid import redis, log, redis_status, bot, user_id +from pagermaid import redis, log, redis_status, bot, user_id, version from pagermaid.utils import lang, alias_command from pagermaid.listener import listener diff --git a/antichannelpin.py b/antichannelpin.py index 4286a3c..5b9f181 100644 --- a/antichannelpin.py +++ b/antichannelpin.py @@ -2,7 +2,7 @@ from telethon.errors import ChatAdminRequiredError from telethon.tl.types import Channel from asyncio import sleep -from pagermaid import redis, log, redis_status +from pagermaid import redis, log, redis_status, version from pagermaid.utils import lang, alias_command from pagermaid.listener import listener diff --git a/antisticker.py b/antisticker.py index 9d42e9c..0153b04 100644 --- a/antisticker.py +++ b/antisticker.py @@ -1,6 +1,6 @@ """ Auto-delete sticker when someone reply """ -from pagermaid import user_id +from pagermaid import user_id, version from pagermaid.listener import listener diff --git a/atadmins_atall.py b/atadmins_atall.py index 1dc018c..16ee521 100644 --- a/atadmins_atall.py +++ b/atadmins_atall.py @@ -1,4 +1,5 @@ from telethon.tl.types import ChannelParticipantsAdmins +from pagermaid import version from pagermaid.utils import alias_command from pagermaid.listener import listener import time diff --git a/autochangename.py b/autochangename.py index 725e90a..cd4f1fa 100644 --- a/autochangename.py +++ b/autochangename.py @@ -4,7 +4,7 @@ from asyncio import sleep from datetime import datetime, timedelta, timezone from telethon.tl.functions.account import UpdateProfileRequest from emoji import emojize -from pagermaid import bot, log +from pagermaid import bot, log, version from pagermaid.listener import listener auto_change_name_init = False diff --git a/autodel.py b/autodel.py index 8beeee2..3eaf02b 100644 --- a/autodel.py +++ b/autodel.py @@ -7,7 +7,7 @@ import traceback from asyncio import sleep from telethon.tl.types import PeerUser from telethon.tl.custom import Message -from pagermaid import redis, redis_status +from pagermaid import redis, redis_status, version from pagermaid.listener import listener from pagermaid.utils import alias_command, pip_install diff --git a/autoreplysticker.py b/autoreplysticker.py index 0dda491..01d56af 100644 --- a/autoreplysticker.py +++ b/autoreplysticker.py @@ -17,7 +17,7 @@ from telethon.tl.custom.message import Message from telethon.tl.functions.messages import GetAllStickersRequest from telethon.tl.functions.messages import GetStickerSetRequest from telethon.tl.types import InputStickerSetID -from pagermaid import log +from pagermaid import log, version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/autorespond.py b/autorespond.py index e7764b6..2f08b3b 100644 --- a/autorespond.py +++ b/autorespond.py @@ -1,7 +1,7 @@ """ Pagermaid autorespond plugin. """ from telethon.events import StopPropagation -from pagermaid import persistent_vars, log +from pagermaid import persistent_vars, log, version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/autorm.py b/autorm.py index cc3d2f6..a7cb9a5 100644 --- a/autorm.py +++ b/autorm.py @@ -3,6 +3,7 @@ # By tg @fruitymelon # extra requirements: dateparser import asyncio, time, traceback, sys +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command, pip_install diff --git a/bc.py b/bc.py index 92a2f32..75db387 100644 --- a/bc.py +++ b/bc.py @@ -11,6 +11,7 @@ from asyncio import sleep from sys import executable import urllib.request from telethon.tl.custom.message import Message +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import execute, alias_command, pip_install diff --git a/bin.py b/bin.py index e03031c..44cef54 100644 --- a/bin.py +++ b/bin.py @@ -1,5 +1,7 @@ -import json, requests +import json +import requests from json.decoder import JSONDecodeError +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import obtain_message, alias_command diff --git a/bingwall.py b/bingwall.py index 793d1ec..1b2f93d 100644 --- a/bingwall.py +++ b/bingwall.py @@ -1,6 +1,7 @@ import json import random from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command from os import remove diff --git a/calculator.py b/calculator.py index aeb31ff..cde2a39 100644 --- a/calculator.py +++ b/calculator.py @@ -1,3 +1,4 @@ +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import attach_log, execute, alias_command diff --git a/chatbot.py b/chatbot.py index 0d2588c..b4d16b9 100644 --- a/chatbot.py +++ b/chatbot.py @@ -1,5 +1,7 @@ -import json, requests +import json +import requests from urllib.parse import quote +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command, obtain_message, lang, clear_emojis diff --git a/cosplay-multi.py b/cosplay-multi.py index 627d701..f31bfaf 100644 --- a/cosplay-multi.py +++ b/cosplay-multi.py @@ -1,5 +1,6 @@ from random import randint, random from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command from os import remove diff --git a/covid-en.py b/covid-en.py index 042afc1..163e0a7 100644 --- a/covid-en.py +++ b/covid-en.py @@ -1,5 +1,6 @@ from pagermaid.listener import listener from pagermaid.utils import alias_command, obtain_message, pip_install +from pagermaid import version pip_install("covid") diff --git a/covid.py b/covid.py index 794af44..d8eb5cc 100644 --- a/covid.py +++ b/covid.py @@ -2,7 +2,7 @@ import json from typing import Dict - +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command, obtain_message, get diff --git a/crazy4.py b/crazy4.py index bcebbef..ef59ca7 100644 --- a/crazy4.py +++ b/crazy4.py @@ -1,4 +1,5 @@ from secrets import choice +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/da.py b/da.py index e068d16..c43bee2 100644 --- a/da.py +++ b/da.py @@ -1,5 +1,5 @@ from asyncio import sleep -from pagermaid import log +from pagermaid import log, version from pagermaid.listener import listener from pagermaid.utils import alias_command from telethon.errors import PeerFloodError diff --git a/dc.py b/dc.py new file mode 100644 index 0000000..a09be4b --- /dev/null +++ b/dc.py @@ -0,0 +1,62 @@ +from telethon.tl.functions.users import GetFullUserRequest +from telethon.tl.types import MessageEntityMentionName, MessageEntityPhone +from struct import error as StructError +from pagermaid import bot, log, silent, version +from pagermaid.utils import lang, alias_command +from pagermaid.listener import listener + + +@listener(is_plugin=False, outgoing=True, command=alias_command('dc'), + description="获取指定用户的 DC", + parameters="") +async def dc(context): + if len(context.parameter) > 1: + await context.edit(f"{lang('error_prefix')}{lang('arg_error')}") + return + if not silent: + await context.edit(lang('profile_process')) + if context.reply_to_msg_id: + reply_message = await context.get_reply_message() + if not reply_message: + return await context.edit(f"{lang('error_prefix')}{lang('arg_error')}") + user = reply_message.from_id + try: + target_user = await context.client(GetFullUserRequest(user)) + except TypeError: + return await context.edit("[dc] 暂不支持频道。") + else: + if len(context.parameter) == 1: + user = context.parameter[0] + if user.isnumeric(): + user = int(user) + else: + user_object = await context.client.get_me() + user = user_object.id + if context.message.entities is not None: + if isinstance(context.message.entities[0], MessageEntityMentionName): + user = context.message.entities[0].user_id + elif isinstance(context.message.entities[0], MessageEntityPhone): + user = int(context.parameter[0]) + else: + await context.edit(f"{lang('error_prefix')}{lang('arg_error')}") + return + try: + user_object = await context.client.get_entity(user) + target_user = await context.client(GetFullUserRequest(user_object.id)) + except (TypeError, ValueError, OverflowError, StructError) as exception: + if str(exception).startswith("Cannot find any entity corresponding to"): + await context.edit(f"{lang('error_prefix')}{lang('profile_e_no')}") + return + if str(exception).startswith("No user has"): + await context.edit(f"{lang('error_prefix')}{lang('profile_e_nou')}") + return + if str(exception).startswith("Could not find the input entity for") or isinstance(exception, StructError): + await context.edit(f"{lang('error_prefix')}{lang('profile_e_nof')}") + return + if isinstance(exception, OverflowError): + await context.edit(f"{lang('error_prefix')}{lang('profile_e_long')}") + return + raise exception + if not target_user.user.photo: + return await context.edit("[dc] 需要先设置头像并且对我可见。") + await context.edit(f"[dc] 所在数据中心为: **DC{target_user.user.photo.dc_id}**") diff --git a/deletemsgsfromgrps.py b/deletemsgsfromgrps.py index b112cc9..dd8e48f 100644 --- a/deletemsgsfromgrps.py +++ b/deletemsgsfromgrps.py @@ -9,6 +9,7 @@ from asyncio import sleep from telethon.tl.custom.message import Message +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/denyu.py b/denyu.py index c98e355..c4e5f8a 100644 --- a/denyu.py +++ b/denyu.py @@ -2,7 +2,7 @@ # Plugin by fruitymelon -from pagermaid import redis, log, redis_status +from pagermaid import redis, log, redis_status, version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/diss.py b/diss.py index b2600fa..af91e9a 100644 --- a/diss.py +++ b/diss.py @@ -1,4 +1,5 @@ from asyncio import sleep +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command, get diff --git a/diy.py b/diy.py index 73678f8..91c82fa 100644 --- a/diy.py +++ b/diy.py @@ -2,6 +2,7 @@ import json from random import randint, choice from time import sleep from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/dme.py b/dme.py index 80d47f8..69eb52c 100644 --- a/dme.py +++ b/dme.py @@ -1,4 +1,5 @@ """ Module to automate message deletion. """ +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command, lang from pagermaid.modules.prune import selfprune diff --git a/eat.py b/eat.py index 0762034..2430b50 100644 --- a/eat.py +++ b/eat.py @@ -15,7 +15,7 @@ from telethon.errors.rpcerrorlist import ChatSendStickersForbiddenError from struct import error as StructError from pagermaid.listener import listener from pagermaid.utils import alias_command -from pagermaid import redis, config, bot, user_id +from pagermaid import redis, config, bot, user_id, version from collections import defaultdict import json diff --git a/epic.py b/epic.py index 55d28da..6bd236d 100644 --- a/epic.py +++ b/epic.py @@ -3,6 +3,7 @@ import sys from requests import post, get from pytz import timezone from datetime import datetime +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/findmessage.py b/findmessage.py index 84416cc..4e60188 100644 --- a/findmessage.py +++ b/findmessage.py @@ -1,5 +1,5 @@ """ Module to automate sticker deletion. """ -from pagermaid import log +from pagermaid import log, version from pagermaid.listener import listener from pagermaid.utils import alias_command, lang diff --git a/forcegroup.py b/forcegroup.py index 26453d3..0f4b8a5 100644 --- a/forcegroup.py +++ b/forcegroup.py @@ -1,4 +1,4 @@ -from pagermaid import bot, redis, redis_status +from pagermaid import bot, redis, redis_status, version from pagermaid.utils import lang, alias_command from pagermaid.listener import listener from asyncio import sleep diff --git a/forcesend.py b/forcesend.py index 75c98ec..21ae49a 100644 --- a/forcesend.py +++ b/forcesend.py @@ -2,6 +2,7 @@ # By tg @fruitymelon +from pagermaid import version from pagermaid.utils import alias_command from pagermaid.listener import listener diff --git a/forcesubscribe.py b/forcesubscribe.py index b0879ba..5c8c89c 100644 --- a/forcesubscribe.py +++ b/forcesubscribe.py @@ -1,4 +1,4 @@ -from pagermaid import bot, redis, redis_status +from pagermaid import bot, redis, redis_status, version from pagermaid.utils import lang, alias_command from pagermaid.listener import listener from asyncio import sleep diff --git a/fuck.py b/fuck.py index f50e8d5..28c3f37 100644 --- a/fuck.py +++ b/fuck.py @@ -9,6 +9,7 @@ from datetime import timedelta from telethon.tl.types import ChannelParticipantsAdmins +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/fuckadmin.py b/fuckadmin.py index 74d78ae..ffda31f 100644 --- a/fuckadmin.py +++ b/fuckadmin.py @@ -1,5 +1,6 @@ from pagermaid.listener import listener from pagermaid.utils import alias_command +from pagermaid import version from telethon.tl.types import ChannelParticipantsAdmins diff --git a/fuckmember.py b/fuckmember.py index 91d6596..29fac5d 100644 --- a/fuckmember.py +++ b/fuckmember.py @@ -1,5 +1,6 @@ from pagermaid.listener import listener from pagermaid.utils import alias_command +from pagermaid import version from telethon.tl.types import ChannelParticipantsAdmins from telethon.errors.rpcerrorlist import UserAdminInvalidError, ChatAdminRequiredError, FloodWaitError from asyncio import sleep diff --git a/fuckmessage.py b/fuckmessage.py index f31b496..bf1be81 100644 --- a/fuckmessage.py +++ b/fuckmessage.py @@ -1,5 +1,5 @@ """ Module to automate sticker deletion. """ -from pagermaid import log +from pagermaid import log, version from pagermaid.listener import listener from pagermaid.utils import alias_command, lang diff --git a/fucksticker.py b/fucksticker.py index 190b316..8bd2dc3 100644 --- a/fucksticker.py +++ b/fucksticker.py @@ -1,6 +1,6 @@ """ Module to automate sticker deletion. """ from asyncio import sleep -from pagermaid import log +from pagermaid import log, version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/getstickers.py b/getstickers.py index 1878c7a..117a12d 100644 --- a/getstickers.py +++ b/getstickers.py @@ -7,7 +7,7 @@ from telethon.tl.functions.messages import GetAllStickersRequest from telethon.tl.functions.messages import GetStickerSetRequest from telethon.errors import MessageNotModifiedError from telethon.errors.rpcerrorlist import StickersetInvalidError -from pagermaid import working_dir +from pagermaid import working_dir, version from telethon.tl.types import ( DocumentAttributeSticker, InputStickerSetID, diff --git a/getstickerset.py b/getstickerset.py index ffe3bb8..0364339 100644 --- a/getstickerset.py +++ b/getstickerset.py @@ -6,7 +6,7 @@ from telethon.tl.types import DocumentAttributeFilename, InputStickerSetEmpty, I InputStickerSetThumb, MessageMediaPhoto from PIL import Image from pytz import timezone -from pagermaid import bot +from pagermaid import bot, version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/ghs.py b/ghs.py index 1d42c80..ce2c5f0 100644 --- a/ghs.py +++ b/ghs.py @@ -1,5 +1,6 @@ import random from requests import get +from pagermaid import version from pagermaid.listener import listener from os import remove from pagermaid.utils import alias_command diff --git a/groupindex.py b/groupindex.py index 7c8297f..36bfe43 100644 --- a/groupindex.py +++ b/groupindex.py @@ -1,6 +1,7 @@ import datetime from pytz import timezone from telethon.tl.functions.users import GetFullUserRequest +from pagermaid import version from pagermaid.utils import alias_command from pagermaid.listener import listener diff --git a/groupword.py b/groupword.py index 2d6d864..556c6a3 100644 --- a/groupword.py +++ b/groupword.py @@ -6,6 +6,7 @@ from os import makedirs from sys import executable from collections import defaultdict from requests import get +from pagermaid import version from pagermaid.utils import execute, alias_command from pagermaid.listener import listener diff --git a/hyperlink.py b/hyperlink.py index b7e4874..7440614 100644 --- a/hyperlink.py +++ b/hyperlink.py @@ -1,5 +1,6 @@ """ Pagermaid hyperlink plugin. by @OahiewUoil """ +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/jd_cmd.py b/jd_cmd.py index b625084..e51d29a 100644 --- a/jd_cmd.py +++ b/jd_cmd.py @@ -1,5 +1,6 @@ """ PagerMaid module to handle jd command. """ +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import lang, alias_command, obtain_message, post diff --git a/keyword.py b/keyword.py index 6b67751..2dd603a 100644 --- a/keyword.py +++ b/keyword.py @@ -5,7 +5,7 @@ from shutil import copyfile, move, rmtree from uuid import uuid4 from base64 import b64encode, b64decode from importlib import import_module -from pagermaid import bot, redis, log, redis_status, working_dir +from pagermaid import bot, redis, log, redis_status, working_dir, version from pagermaid import user_id as me_id from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/kickanddm.py b/kickanddm.py index aa29002..33e3806 100644 --- a/kickanddm.py +++ b/kickanddm.py @@ -1,4 +1,4 @@ -from pagermaid import bot, log +from pagermaid import bot, log, version from pagermaid.listener import listener from asyncio import sleep from datetime import timedelta diff --git a/killallmembers.py b/killallmembers.py index 8ff634c..dbc9ee3 100644 --- a/killallmembers.py +++ b/killallmembers.py @@ -2,6 +2,7 @@ from asyncio import sleep from telethon.tl.types import ChannelParticipantsAdmins from telethon.errors.rpcerrorlist import FloodWaitError +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/kongge.py b/kongge.py index e5e97a7..00cc6bf 100644 --- a/kongge.py +++ b/kongge.py @@ -1,4 +1,5 @@ from pagermaid.listener import listener +from pagermaid import version jieba_imported = True diff --git a/list.json b/list.json index 9f42b0e..abb8122 100644 --- a/list.json +++ b/list.json @@ -2,7 +2,7 @@ "list": [ { "name": "autorespond", - "version": "0.211", + "version": "0.212", "section": "chat", "maintainer": "xtaodada", "size": "1.9 kb", @@ -12,7 +12,7 @@ }, { "name": "autochangename", - "version": "1.11", + "version": "1.111", "section": "profile", "maintainer": "xtaodada", "size": "2.1 kb", @@ -22,7 +22,7 @@ }, { "name": "autorm", - "version": "1.032", + "version": "1.033", "section": "chat", "maintainer": "fruitymelon", "size": "6.7 kb", @@ -32,7 +32,7 @@ }, { "name": "sendat", - "version": "1.321", + "version": "1.322", "section": "chat", "maintainer": "fruitymelon", "size": "15.0 kb", @@ -42,7 +42,7 @@ }, { "name": "weather", - "version": "1.11", + "version": "1.111", "section": "daily", "maintainer": "xtaodada", "size": "2.9 kb", @@ -52,7 +52,7 @@ }, { "name": "xtao-some", - "version": "1.22", + "version": "1.221", "section": "daily", "maintainer": "xtaodada", "size": "12.9 kb", @@ -62,7 +62,7 @@ }, { "name": "yb-dl", - "version": "1.03", + "version": "1.031", "section": "daily", "maintainer": "xtaodada", "size": "18.8 kb", @@ -72,7 +72,7 @@ }, { "name": "throwit", - "version": "1.62", + "version": "1.621", "section": "profile", "maintainer": "xtaodada", "size": "6.9 kb", @@ -82,7 +82,7 @@ }, { "name": "rate", - "version": "1.41", + "version": "1.411", "section": "daily", "maintainer": "fruitymelon", "size": "3.4 kb", @@ -92,7 +92,7 @@ }, { "name": "netease", - "version": "1.31", + "version": "1.311", "section": "daily", "maintainer": "xtaodada、KorenKrita", "size": "0.7 kb", @@ -102,7 +102,7 @@ }, { "name": "atadmins_atall", - "version": "1.12", + "version": "1.121", "section": "chat", "maintainer": "Pentacene", "size": "2.5 kb", @@ -112,7 +112,7 @@ }, { "name": "denyu", - "version": "1.111", + "version": "1.12", "section": "chat", "maintainer": "fruitymelon", "size": "2.7 kb", @@ -122,7 +122,7 @@ }, { "name": "hyperlink", - "version": "1.01", + "version": "1.011", "section": "daily", "maintainer": "OahiewUoil", "size": "0.5 kb", @@ -132,7 +132,7 @@ }, { "name": "nthmsg", - "version": "1.02", + "version": "1.021", "section": "chat", "maintainer": "seiuneko", "size": "0.9 kb", @@ -142,7 +142,7 @@ }, { "name": "portball", - "version": "1.452", + "version": "1.453", "section": "chat", "maintainer": "Pentacene", "size": "2.8 kb", @@ -152,7 +152,7 @@ }, { "name": "resou", - "version": "1.22", + "version": "1.221", "section": "daily", "maintainer": "KorenKrita、xtaodada、monsterxcn", "size": "6.1 kb", @@ -162,7 +162,7 @@ }, { "name": "mjx", - "version": "1.01", + "version": "1.011", "section": "profile", "maintainer": "KorenKrita", "size": "1 kb", @@ -172,7 +172,7 @@ }, { "name": "tel", - "version": "1.11", + "version": "1.111", "section": "daily", "maintainer": "KorenKrita、xtaodada", "size": "1 kb", @@ -182,7 +182,7 @@ }, { "name": "whois", - "version": "1.14", + "version": "1.141", "section": "daily", "maintainer": "KorenKrita", "size": "1.1 kb", @@ -192,7 +192,7 @@ }, { "name": "eat", - "version": "1.043", + "version": "1.044", "section": "profile", "maintainer": "SF_PICK", "size": "22.3 kb", @@ -202,7 +202,7 @@ }, { "name": "cosplay-multi", - "version": "1.31", + "version": "1.311", "section": "daily", "maintainer": "TNTcraftHIM", "size": "2.4 kb", @@ -212,7 +212,7 @@ }, { "name": "meizi", - "version": "1.81", + "version": "1.811", "section": "daily", "maintainer": "TNTcraftHIM", "size": "4.0 kb", @@ -222,7 +222,7 @@ }, { "name": "acg-multi", - "version": "1.41", + "version": "1.411", "section": "daily", "maintainer": "TNTcraftHIM", "size": "2.4 kb", @@ -232,7 +232,7 @@ }, { "name": "da", - "version": "1.021", + "version": "1.022", "section": "chat", "maintainer": "yxkumad", "size": "1.6 kb", @@ -242,7 +242,7 @@ }, { "name": "diss", - "version": "1.111", + "version": "1.112", "section": "chat", "maintainer": "TNTcraftHIM", "size": "1.4 kb", @@ -252,7 +252,7 @@ }, { "name": "shangliu", - "version": "1.01", + "version": "1.011", "section": "chat", "maintainer": "TNTcraftHIM", "size": "2.5 kb", @@ -262,7 +262,7 @@ }, { "name": "neteaseshuffle", - "version": "1.112", + "version": "1.113", "section": "daily", "maintainer": "TNTcraftHIM", "size": "3.0 kb", @@ -272,7 +272,7 @@ }, { "name": "neteasedown", - "version": "1.225", + "version": "1.226", "section": "daily", "maintainer": "xtaodada", "size": "11.4 kb", @@ -282,7 +282,7 @@ }, { "name": "killallmembers", - "version": "1.12", + "version": "1.121", "section": "chat", "maintainer": "Pentacene", "size": "idk", @@ -292,7 +292,7 @@ }, { "name": "videodl", - "version": "0.121", + "version": "0.122", "section": "daily", "maintainer": "TNTcraftHIM", "size": "5.3 kb", @@ -302,7 +302,7 @@ }, { "name": "aff", - "version": "1.21", + "version": "1.211", "section": "chat", "maintainer": "TNTcraftHIM", "size": "2.0 kb", @@ -312,7 +312,7 @@ }, { "name": "stickertopic", - "version": "1.12", + "version": "1.121", "section": "chat", "maintainer": "TNTcraftHIM", "size": "3.5 kb", @@ -322,7 +322,7 @@ }, { "name": "vip", - "version": "0.713", + "version": "0.714", "section": "chat", "maintainer": "xtaodada", "size": "11.6 kb", @@ -332,7 +332,7 @@ }, { "name": "calculator", - "version": "1.02", + "version": "1.021", "section": "chat", "maintainer": "Pentacene", "size": "1.0 kb", @@ -342,7 +342,7 @@ }, { "name": "paolu", - "version": "1.021", + "version": "1.022", "section": "chat", "maintainer": "Pentacene", "size": "1.0 kb", @@ -352,7 +352,7 @@ }, { "name": "autoreplysticker", - "version": "1.232", + "version": "1.233", "section": "chat", "maintainer": "Pentacene", "size": "12 kb", @@ -362,7 +362,7 @@ }, { "name": "deletemsgsfromgrps", - "version": "1.02", + "version": "1.021", "section": "chat", "maintainer": "Pentacene", "size": "4 kb", @@ -372,7 +372,7 @@ }, { "name": "keyword", - "version": "2.702", + "version": "2.703", "section": "chat", "maintainer": "c3b2a,xtaodada", "size": "47.6 kb", @@ -382,7 +382,7 @@ }, { "name": "transfer", - "version": "1.02", + "version": "1.021", "section": "daily", "maintainer": "c3b2a", "size": "2.7 kb", @@ -392,7 +392,7 @@ }, { "name": "xjj", - "version": "1.02", + "version": "1.021", "section": "daily", "maintainer": "Moriarty-989", "size": "1.4 kb", @@ -402,7 +402,7 @@ }, { "name": "zpr", - "version": "1.01", + "version": "1.011", "section": "daily", "maintainer": "Moriarty-989", "size": "1.4 kb", @@ -412,7 +412,7 @@ }, { "name": "forcesend", - "version": "1.01", + "version": "1.011", "section": "chat", "maintainer": "fruitymelon", "size": "1.3 kb", @@ -422,7 +422,7 @@ }, { "name": "ghs", - "version": "1.01", + "version": "1.011", "section": "chat", "maintainer": "akun", "size": "1.3 kb", @@ -432,7 +432,7 @@ }, { "name": "bc", - "version": "1.231", + "version": "1.232", "section": "chat", "maintainer": "Pentacene", "size": "8.0 kb", @@ -442,7 +442,7 @@ }, { "name": "diy", - "version": "1.01", + "version": "1.011", "section": "chat", "maintainer": "ahhhiiii,xtaodada", "size": "2.9 kb", @@ -452,7 +452,7 @@ }, { "name": "bingwall", - "version": "1.01", + "version": "1.011", "section": "chat", "maintainer": "ahhhiiii", "size": "1.9 kb", @@ -462,7 +462,7 @@ }, { "name": "pl", - "version": "1.031", + "version": "1.032", "section": "chat", "maintainer": "lowking", "size": "4.0 kb", @@ -472,7 +472,7 @@ }, { "name": "rape", - "version": "1.033", + "version": "1.034", "section": "chat", "maintainer": "Pentacene", "size": "4.0 kb", @@ -482,7 +482,7 @@ }, { "name": "fuck", - "version": "1.023", + "version": "1.024", "section": "chat", "maintainer": "Pentacene", "size": "4.0 kb", @@ -492,7 +492,7 @@ }, { "name": "groupword", - "version": "1.06", + "version": "1.061", "section": "chat", "maintainer": "xtaodada", "size": "3.32 kb", @@ -502,7 +502,7 @@ }, { "name": "kongge", - "version": "1.04", + "version": "1.041", "section": "chat", "maintainer": "xtaodada", "size": "4.0 kb", @@ -512,7 +512,7 @@ }, { "name": "getstickers", - "version": "1.111", + "version": "1.112", "section": "chat", "maintainer": "xtaodada,Vesugierii", "size": "5.4 kb", @@ -522,7 +522,7 @@ }, { "name": "fucksticker", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "1.14 kb", @@ -532,7 +532,7 @@ }, { "name": "pic2sticker", - "version": "1.01", + "version": "1.011", "section": "chat", "maintainer": "xtaodada", "size": "4.7 kb", @@ -542,7 +542,7 @@ }, { "name": "listusernames", - "version": "1.0", + "version": "1.01", "section": "daily", "maintainer": "xtaodada", "size": "0.7 kb", @@ -552,7 +552,7 @@ }, { "name": "fuckadmin", - "version": "1.11", + "version": "1.111", "section": "daily", "maintainer": "xtaodada", "size": "2.9 kb", @@ -562,7 +562,7 @@ }, { "name": "bin", - "version": "1.02", + "version": "1.021", "section": "daily", "maintainer": "paulkm", "size": "1.8 kb", @@ -572,7 +572,7 @@ }, { "name": "fuckmember", - "version": "1.033", + "version": "1.034", "section": "daily", "maintainer": "xtaodada", "size": "3.0 kb", @@ -582,7 +582,7 @@ }, { "name": "unbanby", - "version": "1.01", + "version": "1.011", "section": "daily", "maintainer": "xtaodada", "size": "2.8 kb", @@ -592,7 +592,7 @@ }, { "name": "forcesubscribe", - "version": "1.06", + "version": "1.061", "section": "daily", "maintainer": "xtaodada", "size": "4.2 kb", @@ -602,7 +602,7 @@ }, { "name": "forcegroup", - "version": "1.02", + "version": "1.021", "section": "daily", "maintainer": "xtaodada", "size": "3.6 kb", @@ -612,7 +612,7 @@ }, { "name": "repeat", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "1.8 kb", @@ -622,7 +622,7 @@ }, { "name": "kickanddm", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "lowking", "size": "5.6 kb", @@ -632,7 +632,7 @@ }, { "name": "fuckmessage", - "version": "1.01", + "version": "1.011", "section": "chat", "maintainer": "xtaodada", "size": "1.3 kb", @@ -642,7 +642,7 @@ }, { "name": "yyr", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "xtaodada、kld", "size": "0.9 kb", @@ -652,7 +652,7 @@ }, { "name": "chatbot", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "1.2 kb", @@ -662,7 +662,7 @@ }, { "name": "square", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "Vesugierii", "size": "1.2 kb", @@ -672,7 +672,7 @@ }, { "name": "groupindex", - "version": "1.121", + "version": "1.122", "section": "daily", "maintainer": "xtaodada", "size": "3.2 kb", @@ -682,7 +682,7 @@ }, { "name": "yvlu", - "version": "1.213", + "version": "1.214", "section": "chat", "maintainer": "xtaodada", "size": "10.4 kb", @@ -692,7 +692,7 @@ }, { "name": "antichannelmsg", - "version": "1.001", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "4.8 kb", @@ -702,7 +702,7 @@ }, { "name": "antichannelpin", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "2.8 kb", @@ -712,7 +712,7 @@ }, { "name": "shift", - "version": "1.03", + "version": "1.031", "section": "daily", "maintainer": "xtaodada", "size": "5.3 kb", @@ -722,7 +722,7 @@ }, { "name": "getstickerset", - "version": "1.01", + "version": "1.011", "section": "chat", "maintainer": "xtaodada", "size": "4.4 kb", @@ -732,7 +732,7 @@ }, { "name": "autodel", - "version": "1.001", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "5.7 kb", @@ -742,7 +742,7 @@ }, { "name": "antisticker", - "version": "1.02", + "version": "1.021", "section": "chat", "maintainer": "xtaodada", "size": "0.7 kb", @@ -752,7 +752,7 @@ }, { "name": "yinglish", - "version": "1.00", + "version": "1.001", "section": "chat", "maintainer": "YU", "size": "1.7 kb", @@ -762,7 +762,7 @@ }, { "name": "findmessage", - "version": "1.00", + "version": "1.001", "section": "chat", "maintainer": "vesugier", "size": "1.44 kb", @@ -772,7 +772,7 @@ }, { "name": "epic", - "version": "1.01", + "version": "1.011", "section": "daily", "maintainer": "xtaodada", "size": "5.80 kb", @@ -782,7 +782,7 @@ }, { "name": "covid-en", - "version": "1.001", + "version": "1.01", "section": "daily", "maintainer": "xtaodada", "size": "1.70 kb", @@ -792,7 +792,7 @@ }, { "name": "covid", - "version": "1.01", + "version": "1.011", "section": "daily", "maintainer": "xtaodada", "size": "3.90 kb", @@ -802,7 +802,7 @@ }, { "name": "moyu", - "version": "1.02", + "version": "1.021", "section": "daily", "maintainer": "sam01101", "size": "3.00 kb", @@ -812,7 +812,7 @@ }, { "name": "jd_cmd", - "version": "1.01", + "version": "1.011", "section": "chat", "maintainer": "xtaodada", "size": "1.00 kb", @@ -822,7 +822,7 @@ }, { "name": "crazy4", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "17.10 kb", @@ -832,13 +832,23 @@ }, { "name": "dme", - "version": "1.201", + "version": "1.21", "section": "chat", "maintainer": "xtaodada", "size": "0.4 kb", "supported": true, "des-short": "删除当前对话您发送的特定数量的消息。", - "des": "删除当前对话您发送的特定数量的消息。" + "des": "删除当前对话您发送的特定数量的消息。\n指令:-dme" + }, + { + "name": "dc", + "version": "1.0", + "section": "chat", + "maintainer": "xtaodada", + "size": "3.0 kb", + "supported": true, + "des-short": "查询特定用户的 DC。", + "des": "查询特定用户的 DC。\n指令:-dc" } ] } diff --git a/listusernames.py b/listusernames.py index 31080f0..4c5e68e 100644 --- a/listusernames.py +++ b/listusernames.py @@ -1,4 +1,4 @@ -from pagermaid import bot +from pagermaid import bot, version from pagermaid.listener import listener from pagermaid.utils import alias_command from telethon.tl.functions.channels import GetAdminedPublicChannelsRequest diff --git a/meizi.py b/meizi.py index 7f21119..b742971 100644 --- a/meizi.py +++ b/meizi.py @@ -1,5 +1,6 @@ import random from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command from os import remove diff --git a/mjx.py b/mjx.py index 0f6abfb..59de558 100644 --- a/mjx.py +++ b/mjx.py @@ -1,5 +1,6 @@ import json from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/moyu.py b/moyu.py index 69b187a..1576162 100644 --- a/moyu.py +++ b/moyu.py @@ -4,7 +4,7 @@ import datetime from random import choice import pytz -from pagermaid import bot +from pagermaid import bot, version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/netease.py b/netease.py index 73f2955..2f69ee4 100644 --- a/netease.py +++ b/netease.py @@ -1,5 +1,6 @@ import json from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/neteasedown.py b/neteasedown.py index 7edb861..6ad4871 100644 --- a/neteasedown.py +++ b/neteasedown.py @@ -6,6 +6,7 @@ from os import sep, remove, listdir from os.path import isfile, exists from time import strftime, localtime +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command, execute, pip_install diff --git a/neteasemusic.py b/neteasemusic.py index c70aab8..b57e038 100644 --- a/neteasemusic.py +++ b/neteasemusic.py @@ -8,7 +8,7 @@ import random import math from time import sleep from pagermaid.listener import listener -from pagermaid import bot +from pagermaid import bot, version from pagermaid.utils import alias_command from os import remove, path, mkdir, getcwd from os.path import exists diff --git a/neteaseshuffle.py b/neteaseshuffle.py index f49d5c8..33bd2b3 100644 --- a/neteaseshuffle.py +++ b/neteaseshuffle.py @@ -1,6 +1,7 @@ import json import requests from time import sleep +from pagermaid import version from pagermaid.listener import listener from os import remove, path from pagermaid.utils import alias_command, pip_install diff --git a/nthmsg.py b/nthmsg.py index ebafe56..4c665f3 100644 --- a/nthmsg.py +++ b/nthmsg.py @@ -1,6 +1,7 @@ from pagermaid.listener import listener from telethon import functions, types from pagermaid.utils import alias_command +from pagermaid import version @listener(outgoing=True, command=alias_command("nthmsg"), diff --git a/paolu.py b/paolu.py index 3b0500a..9c11ff4 100644 --- a/paolu.py +++ b/paolu.py @@ -9,6 +9,7 @@ from asyncio import sleep from telethon.errors.common import MultiError +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/pic2sticker.py b/pic2sticker.py index d440082..aa1caed 100644 --- a/pic2sticker.py +++ b/pic2sticker.py @@ -4,7 +4,7 @@ from io import BytesIO from telethon.tl.types import DocumentAttributeFilename, MessageMediaPhoto, MessageMediaWebPage from PIL import Image, ImageOps from math import floor -from pagermaid import bot, redis, redis_status +from pagermaid import bot, redis, redis_status, version from pagermaid.listener import listener from pagermaid.utils import lang, alias_command diff --git a/pl.py b/pl.py index e9b0d44..6287b56 100644 --- a/pl.py +++ b/pl.py @@ -5,6 +5,7 @@ from asyncio import sleep from requests import get from sys import executable +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command, pip_install diff --git a/portball.py b/portball.py index eb5997c..9275d67 100644 --- a/portball.py +++ b/portball.py @@ -1,4 +1,4 @@ -from pagermaid import bot, log, user_id +from pagermaid import bot, log, user_id, version from pagermaid.listener import listener from telethon.errors import rpcerrorlist from asyncio import sleep diff --git a/rape.py b/rape.py index 82c2ef9..3b340db 100644 --- a/rape.py +++ b/rape.py @@ -10,6 +10,7 @@ from datetime import timedelta from telethon.tl.types import ChannelParticipantsAdmins from telethon.errors.rpcerrorlist import ChatAdminRequiredError +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/rate.py b/rate.py index 4d28adc..761fef2 100644 --- a/rate.py +++ b/rate.py @@ -4,7 +4,7 @@ import json, time from json.decoder import JSONDecodeError import urllib.request from pagermaid.listener import listener, config -from pagermaid import log +from pagermaid import log, version from pagermaid.utils import alias_command # i18n diff --git a/repeat.py b/repeat.py index 5867f0f..9667957 100644 --- a/repeat.py +++ b/repeat.py @@ -1,4 +1,4 @@ -from pagermaid import redis, redis_status, log +from pagermaid import redis, redis_status, log, version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/resou.py b/resou.py index 7056f95..6315b26 100644 --- a/resou.py +++ b/resou.py @@ -1,6 +1,7 @@ import json from requests import get from json.decoder import JSONDecodeError +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/sendat.py b/sendat.py index e291b07..6e17843 100644 --- a/sendat.py +++ b/sendat.py @@ -4,7 +4,7 @@ # extra requirements: dateparser import sys, time, traceback import asyncio -from pagermaid import log +from pagermaid import log, version from pagermaid.listener import listener from pagermaid.utils import alias_command, pip_install diff --git a/shangliu.py b/shangliu.py index 23833bd..9c597e8 100644 --- a/shangliu.py +++ b/shangliu.py @@ -1,5 +1,6 @@ from time import sleep from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/shift.py b/shift.py index 32c3c00..273b892 100644 --- a/shift.py +++ b/shift.py @@ -2,7 +2,7 @@ from asyncio import sleep from random import uniform from telethon.errors.rpcerrorlist import FloodWaitError -from pagermaid import redis, log, redis_status +from pagermaid import redis, log, redis_status, version from pagermaid.utils import lang, alias_command from pagermaid.listener import listener diff --git a/square.py b/square.py index 27ed440..a1251a4 100644 --- a/square.py +++ b/square.py @@ -1,5 +1,7 @@ from pagermaid.listener import listener from pagermaid.utils import alias_command +from pagermaid import version + @listener(is_plugin=True, outgoing=True, command=alias_command("square"), description="生成文本矩形", diff --git a/stickertopic.py b/stickertopic.py index 47cf4c2..cb5efdc 100644 --- a/stickertopic.py +++ b/stickertopic.py @@ -3,7 +3,7 @@ from os import remove from io import BytesIO from telethon.tl.types import DocumentAttributeFilename, MessageMediaPhoto, MessageMediaWebPage from PIL import Image -from pagermaid import bot +from pagermaid import bot, version from pagermaid.listener import listener from pagermaid.utils import alias_command from random import random diff --git a/tel.py b/tel.py index 0f8f220..4ddfff9 100644 --- a/tel.py +++ b/tel.py @@ -3,6 +3,7 @@ import sys, codecs sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import obtain_message, alias_command diff --git a/throwit.py b/throwit.py index 2272f23..b257e97 100644 --- a/throwit.py +++ b/throwit.py @@ -9,6 +9,7 @@ from telethon.tl.functions.users import GetFullUserRequest from telethon.tl.types import MessageEntityMentionName from telethon.errors.rpcerrorlist import ChatSendStickersForbiddenError from struct import error as StructError +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/transfer.py b/transfer.py index 6311324..edd451d 100644 --- a/transfer.py +++ b/transfer.py @@ -1,7 +1,7 @@ import asyncio, zipfile, os from io import BytesIO from os.path import exists, isfile -from pagermaid import bot +from pagermaid import bot, version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/unbanby.py b/unbanby.py index b48c01f..5ab72be 100644 --- a/unbanby.py +++ b/unbanby.py @@ -1,5 +1,6 @@ from pagermaid.listener import listener from pagermaid.utils import alias_command +from pagermaid import version from telethon.tl.types import ChannelParticipantsKicked, ChannelParticipantsAdmins from telethon.errors.rpcerrorlist import UserAdminInvalidError, ChatAdminRequiredError, FloodWaitError from asyncio import sleep diff --git a/videodl.py b/videodl.py index ac1f849..293e73b 100644 --- a/videodl.py +++ b/videodl.py @@ -4,7 +4,7 @@ import json from os import remove, mkdir from os.path import exists from re import compile as regex_compile -from pagermaid import bot, log +from pagermaid import bot, log, version from pagermaid.listener import listener from pagermaid.utils import alias_command from telethon.tl.types import DocumentAttributeVideo diff --git a/vip.py b/vip.py index 66bf848..9aca05f 100644 --- a/vip.py +++ b/vip.py @@ -4,7 +4,7 @@ from requests import get from os import remove from telethon.tl.types import MessageMediaPhoto from asyncio import TimeoutError -from pagermaid import bot, redis, redis_status +from pagermaid import bot, redis, redis_status, version from pagermaid.listener import listener from pagermaid.utils import obtain_message, alias_command diff --git a/weather.py b/weather.py index e55463e..85c20e5 100644 --- a/weather.py +++ b/weather.py @@ -1,6 +1,7 @@ import json import datetime from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import obtain_message, alias_command diff --git a/whois.py b/whois.py index d0db88e..e688a52 100644 --- a/whois.py +++ b/whois.py @@ -1,6 +1,7 @@ import json from json import JSONDecodeError from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import obtain_message, alias_command diff --git a/xjj.py b/xjj.py index 54c726a..4c822fd 100644 --- a/xjj.py +++ b/xjj.py @@ -1,5 +1,6 @@ import random from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command from os import remove diff --git a/xtao-some.py b/xtao-some.py index d8f3991..0c828a8 100644 --- a/xtao-some.py +++ b/xtao-some.py @@ -1,7 +1,7 @@ """ Pagermaid plugin base. """ import json, requests, re from urllib.parse import urlparse -from pagermaid import bot, log +from pagermaid import bot, log, version from pagermaid.listener import listener, config from pagermaid.utils import clear_emojis, obtain_message, attach_log, alias_command from telethon.errors import ChatAdminRequiredError diff --git a/yb-dl.py b/yb-dl.py index af167d8..2348a3e 100644 --- a/yb-dl.py +++ b/yb-dl.py @@ -5,7 +5,7 @@ from os.path import exists from youtube_dl import YoutubeDL from youtube_dl.utils import DownloadError from re import compile as regex_compile -from pagermaid import bot, log +from pagermaid import bot, log, version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/yinglish.py b/yinglish.py index 02bf1e8..2256bb4 100644 --- a/yinglish.py +++ b/yinglish.py @@ -1,7 +1,7 @@ import random from asyncio import sleep from sys import executable -from pagermaid import log +from pagermaid import log, version from pagermaid.listener import listener from pagermaid.utils import alias_command, execute diff --git a/yvlu.py b/yvlu.py index b7b421e..fa017c6 100644 --- a/yvlu.py +++ b/yvlu.py @@ -9,7 +9,7 @@ from telethon.tl.functions.contacts import UnblockRequest from telethon.tl.functions.users import GetFullUserRequest from telethon.tl.types import MessageMediaPhoto, MessageMediaWebPage, MessageMediaUnsupported from asyncio import TimeoutError -from pagermaid import bot +from pagermaid import bot, version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/yyr.py b/yyr.py index d2c3040..2b462cb 100644 --- a/yyr.py +++ b/yyr.py @@ -1,4 +1,5 @@ import json, requests +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command diff --git a/zpr.py b/zpr.py index f855a93..8624909 100644 --- a/zpr.py +++ b/zpr.py @@ -1,5 +1,6 @@ import random from requests import get +from pagermaid import version from pagermaid.listener import listener from pagermaid.utils import alias_command from os import remove