Apply CVE

This commit is contained in:
xtaodada 2022-01-18 16:47:20 +08:00
parent 4805ecfd50
commit 425f12e3d2
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
87 changed files with 247 additions and 124 deletions

View File

@ -1,6 +1,7 @@
import json import json
import random import random
import requests import requests
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from os import remove from os import remove

1
aff.py
View File

@ -1,6 +1,7 @@
from time import sleep from time import sleep
from os.path import exists from os.path import exists
from os import mkdir, remove from os import mkdir, remove
from pagermaid import version
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from pagermaid.listener import listener from pagermaid.listener import listener

View File

@ -2,7 +2,7 @@
from telethon.errors import ChatAdminRequiredError from telethon.errors import ChatAdminRequiredError
from telethon.tl.types import Channel, ChatBannedRights from telethon.tl.types import Channel, ChatBannedRights
from telethon.tl.functions.channels import GetFullChannelRequest, EditBannedRequest 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.utils import lang, alias_command
from pagermaid.listener import listener from pagermaid.listener import listener

View File

@ -2,7 +2,7 @@
from telethon.errors import ChatAdminRequiredError from telethon.errors import ChatAdminRequiredError
from telethon.tl.types import Channel from telethon.tl.types import Channel
from asyncio import sleep 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.utils import lang, alias_command
from pagermaid.listener import listener from pagermaid.listener import listener

View File

@ -1,6 +1,6 @@
""" Auto-delete sticker when someone reply """ """ Auto-delete sticker when someone reply """
from pagermaid import user_id from pagermaid import user_id, version
from pagermaid.listener import listener from pagermaid.listener import listener

View File

@ -1,4 +1,5 @@
from telethon.tl.types import ChannelParticipantsAdmins from telethon.tl.types import ChannelParticipantsAdmins
from pagermaid import version
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from pagermaid.listener import listener from pagermaid.listener import listener
import time import time

View File

@ -4,7 +4,7 @@ from asyncio import sleep
from datetime import datetime, timedelta, timezone from datetime import datetime, timedelta, timezone
from telethon.tl.functions.account import UpdateProfileRequest from telethon.tl.functions.account import UpdateProfileRequest
from emoji import emojize from emoji import emojize
from pagermaid import bot, log from pagermaid import bot, log, version
from pagermaid.listener import listener from pagermaid.listener import listener
auto_change_name_init = False auto_change_name_init = False

View File

@ -7,7 +7,7 @@ import traceback
from asyncio import sleep from asyncio import sleep
from telethon.tl.types import PeerUser from telethon.tl.types import PeerUser
from telethon.tl.custom import Message 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.listener import listener
from pagermaid.utils import alias_command, pip_install from pagermaid.utils import alias_command, pip_install

View File

@ -17,7 +17,7 @@ from telethon.tl.custom.message import Message
from telethon.tl.functions.messages import GetAllStickersRequest from telethon.tl.functions.messages import GetAllStickersRequest
from telethon.tl.functions.messages import GetStickerSetRequest from telethon.tl.functions.messages import GetStickerSetRequest
from telethon.tl.types import InputStickerSetID from telethon.tl.types import InputStickerSetID
from pagermaid import log from pagermaid import log, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,7 +1,7 @@
""" Pagermaid autorespond plugin. """ """ Pagermaid autorespond plugin. """
from telethon.events import StopPropagation 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.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -3,6 +3,7 @@
# By tg @fruitymelon # By tg @fruitymelon
# extra requirements: dateparser # extra requirements: dateparser
import asyncio, time, traceback, sys import asyncio, time, traceback, sys
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, pip_install from pagermaid.utils import alias_command, pip_install

1
bc.py
View File

@ -11,6 +11,7 @@ from asyncio import sleep
from sys import executable from sys import executable
import urllib.request import urllib.request
from telethon.tl.custom.message import Message from telethon.tl.custom.message import Message
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import execute, alias_command, pip_install from pagermaid.utils import execute, alias_command, pip_install

4
bin.py
View File

@ -1,5 +1,7 @@
import json, requests import json
import requests
from json.decoder import JSONDecodeError from json.decoder import JSONDecodeError
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import obtain_message, alias_command from pagermaid.utils import obtain_message, alias_command

View File

@ -1,6 +1,7 @@
import json import json
import random import random
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from os import remove from os import remove

View File

@ -1,3 +1,4 @@
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import attach_log, execute, alias_command from pagermaid.utils import attach_log, execute, alias_command

View File

@ -1,5 +1,7 @@
import json, requests import json
import requests
from urllib.parse import quote from urllib.parse import quote
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, obtain_message, lang, clear_emojis from pagermaid.utils import alias_command, obtain_message, lang, clear_emojis

View File

@ -1,5 +1,6 @@
from random import randint, random from random import randint, random
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from os import remove from os import remove

View File

@ -1,5 +1,6 @@
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, obtain_message, pip_install from pagermaid.utils import alias_command, obtain_message, pip_install
from pagermaid import version
pip_install("covid") pip_install("covid")

View File

@ -2,7 +2,7 @@
import json import json
from typing import Dict from typing import Dict
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, obtain_message, get from pagermaid.utils import alias_command, obtain_message, get

View File

@ -1,4 +1,5 @@
from secrets import choice from secrets import choice
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

2
da.py
View File

@ -1,5 +1,5 @@
from asyncio import sleep from asyncio import sleep
from pagermaid import log from pagermaid import log, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from telethon.errors import PeerFloodError from telethon.errors import PeerFloodError

62
dc.py Normal file
View File

@ -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="<username/id>")
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}**")

View File

@ -9,6 +9,7 @@
from asyncio import sleep from asyncio import sleep
from telethon.tl.custom.message import Message from telethon.tl.custom.message import Message
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -2,7 +2,7 @@
# Plugin by fruitymelon # 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.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,4 +1,5 @@
from asyncio import sleep from asyncio import sleep
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, get from pagermaid.utils import alias_command, get

1
diy.py
View File

@ -2,6 +2,7 @@ import json
from random import randint, choice from random import randint, choice
from time import sleep from time import sleep
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

1
dme.py
View File

@ -1,4 +1,5 @@
""" Module to automate message deletion. """ """ Module to automate message deletion. """
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, lang from pagermaid.utils import alias_command, lang
from pagermaid.modules.prune import selfprune from pagermaid.modules.prune import selfprune

2
eat.py
View File

@ -15,7 +15,7 @@ from telethon.errors.rpcerrorlist import ChatSendStickersForbiddenError
from struct import error as StructError from struct import error as StructError
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command 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 from collections import defaultdict
import json import json

View File

@ -3,6 +3,7 @@ import sys
from requests import post, get from requests import post, get
from pytz import timezone from pytz import timezone
from datetime import datetime from datetime import datetime
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,5 +1,5 @@
""" Module to automate sticker deletion. """ """ Module to automate sticker deletion. """
from pagermaid import log from pagermaid import log, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, lang from pagermaid.utils import alias_command, lang

View File

@ -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.utils import lang, alias_command
from pagermaid.listener import listener from pagermaid.listener import listener
from asyncio import sleep from asyncio import sleep

View File

@ -2,6 +2,7 @@
# By tg @fruitymelon # By tg @fruitymelon
from pagermaid import version
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from pagermaid.listener import listener from pagermaid.listener import listener

View File

@ -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.utils import lang, alias_command
from pagermaid.listener import listener from pagermaid.listener import listener
from asyncio import sleep from asyncio import sleep

View File

@ -9,6 +9,7 @@
from datetime import timedelta from datetime import timedelta
from telethon.tl.types import ChannelParticipantsAdmins from telethon.tl.types import ChannelParticipantsAdmins
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,5 +1,6 @@
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from pagermaid import version
from telethon.tl.types import ChannelParticipantsAdmins from telethon.tl.types import ChannelParticipantsAdmins

View File

@ -1,5 +1,6 @@
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from pagermaid import version
from telethon.tl.types import ChannelParticipantsAdmins from telethon.tl.types import ChannelParticipantsAdmins
from telethon.errors.rpcerrorlist import UserAdminInvalidError, ChatAdminRequiredError, FloodWaitError from telethon.errors.rpcerrorlist import UserAdminInvalidError, ChatAdminRequiredError, FloodWaitError
from asyncio import sleep from asyncio import sleep

View File

@ -1,5 +1,5 @@
""" Module to automate sticker deletion. """ """ Module to automate sticker deletion. """
from pagermaid import log from pagermaid import log, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, lang from pagermaid.utils import alias_command, lang

View File

@ -1,6 +1,6 @@
""" Module to automate sticker deletion. """ """ Module to automate sticker deletion. """
from asyncio import sleep from asyncio import sleep
from pagermaid import log from pagermaid import log, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -7,7 +7,7 @@ from telethon.tl.functions.messages import GetAllStickersRequest
from telethon.tl.functions.messages import GetStickerSetRequest from telethon.tl.functions.messages import GetStickerSetRequest
from telethon.errors import MessageNotModifiedError from telethon.errors import MessageNotModifiedError
from telethon.errors.rpcerrorlist import StickersetInvalidError from telethon.errors.rpcerrorlist import StickersetInvalidError
from pagermaid import working_dir from pagermaid import working_dir, version
from telethon.tl.types import ( from telethon.tl.types import (
DocumentAttributeSticker, DocumentAttributeSticker,
InputStickerSetID, InputStickerSetID,

View File

@ -6,7 +6,7 @@ from telethon.tl.types import DocumentAttributeFilename, InputStickerSetEmpty, I
InputStickerSetThumb, MessageMediaPhoto InputStickerSetThumb, MessageMediaPhoto
from PIL import Image from PIL import Image
from pytz import timezone from pytz import timezone
from pagermaid import bot from pagermaid import bot, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

1
ghs.py
View File

@ -1,5 +1,6 @@
import random import random
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from os import remove from os import remove
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,6 +1,7 @@
import datetime import datetime
from pytz import timezone from pytz import timezone
from telethon.tl.functions.users import GetFullUserRequest from telethon.tl.functions.users import GetFullUserRequest
from pagermaid import version
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from pagermaid.listener import listener from pagermaid.listener import listener

View File

@ -6,6 +6,7 @@ from os import makedirs
from sys import executable from sys import executable
from collections import defaultdict from collections import defaultdict
from requests import get from requests import get
from pagermaid import version
from pagermaid.utils import execute, alias_command from pagermaid.utils import execute, alias_command
from pagermaid.listener import listener from pagermaid.listener import listener

View File

@ -1,5 +1,6 @@
""" Pagermaid hyperlink plugin. by @OahiewUoil """ """ Pagermaid hyperlink plugin. by @OahiewUoil """
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,5 +1,6 @@
""" PagerMaid module to handle jd command. """ """ PagerMaid module to handle jd command. """
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import lang, alias_command, obtain_message, post from pagermaid.utils import lang, alias_command, obtain_message, post

View File

@ -5,7 +5,7 @@ from shutil import copyfile, move, rmtree
from uuid import uuid4 from uuid import uuid4
from base64 import b64encode, b64decode from base64 import b64encode, b64decode
from importlib import import_module 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 import user_id as me_id
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,4 +1,4 @@
from pagermaid import bot, log from pagermaid import bot, log, version
from pagermaid.listener import listener from pagermaid.listener import listener
from asyncio import sleep from asyncio import sleep
from datetime import timedelta from datetime import timedelta

View File

@ -2,6 +2,7 @@
from asyncio import sleep from asyncio import sleep
from telethon.tl.types import ChannelParticipantsAdmins from telethon.tl.types import ChannelParticipantsAdmins
from telethon.errors.rpcerrorlist import FloodWaitError from telethon.errors.rpcerrorlist import FloodWaitError
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,4 +1,5 @@
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid import version
jieba_imported = True jieba_imported = True

180
list.json
View File

@ -2,7 +2,7 @@
"list": [ "list": [
{ {
"name": "autorespond", "name": "autorespond",
"version": "0.211", "version": "0.212",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "1.9 kb", "size": "1.9 kb",
@ -12,7 +12,7 @@
}, },
{ {
"name": "autochangename", "name": "autochangename",
"version": "1.11", "version": "1.111",
"section": "profile", "section": "profile",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "2.1 kb", "size": "2.1 kb",
@ -22,7 +22,7 @@
}, },
{ {
"name": "autorm", "name": "autorm",
"version": "1.032", "version": "1.033",
"section": "chat", "section": "chat",
"maintainer": "fruitymelon", "maintainer": "fruitymelon",
"size": "6.7 kb", "size": "6.7 kb",
@ -32,7 +32,7 @@
}, },
{ {
"name": "sendat", "name": "sendat",
"version": "1.321", "version": "1.322",
"section": "chat", "section": "chat",
"maintainer": "fruitymelon", "maintainer": "fruitymelon",
"size": "15.0 kb", "size": "15.0 kb",
@ -42,7 +42,7 @@
}, },
{ {
"name": "weather", "name": "weather",
"version": "1.11", "version": "1.111",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "2.9 kb", "size": "2.9 kb",
@ -52,7 +52,7 @@
}, },
{ {
"name": "xtao-some", "name": "xtao-some",
"version": "1.22", "version": "1.221",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "12.9 kb", "size": "12.9 kb",
@ -62,7 +62,7 @@
}, },
{ {
"name": "yb-dl", "name": "yb-dl",
"version": "1.03", "version": "1.031",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "18.8 kb", "size": "18.8 kb",
@ -72,7 +72,7 @@
}, },
{ {
"name": "throwit", "name": "throwit",
"version": "1.62", "version": "1.621",
"section": "profile", "section": "profile",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "6.9 kb", "size": "6.9 kb",
@ -82,7 +82,7 @@
}, },
{ {
"name": "rate", "name": "rate",
"version": "1.41", "version": "1.411",
"section": "daily", "section": "daily",
"maintainer": "fruitymelon", "maintainer": "fruitymelon",
"size": "3.4 kb", "size": "3.4 kb",
@ -92,7 +92,7 @@
}, },
{ {
"name": "netease", "name": "netease",
"version": "1.31", "version": "1.311",
"section": "daily", "section": "daily",
"maintainer": "xtaodada、KorenKrita", "maintainer": "xtaodada、KorenKrita",
"size": "0.7 kb", "size": "0.7 kb",
@ -102,7 +102,7 @@
}, },
{ {
"name": "atadmins_atall", "name": "atadmins_atall",
"version": "1.12", "version": "1.121",
"section": "chat", "section": "chat",
"maintainer": "Pentacene", "maintainer": "Pentacene",
"size": "2.5 kb", "size": "2.5 kb",
@ -112,7 +112,7 @@
}, },
{ {
"name": "denyu", "name": "denyu",
"version": "1.111", "version": "1.12",
"section": "chat", "section": "chat",
"maintainer": "fruitymelon", "maintainer": "fruitymelon",
"size": "2.7 kb", "size": "2.7 kb",
@ -122,7 +122,7 @@
}, },
{ {
"name": "hyperlink", "name": "hyperlink",
"version": "1.01", "version": "1.011",
"section": "daily", "section": "daily",
"maintainer": "OahiewUoil", "maintainer": "OahiewUoil",
"size": "0.5 kb", "size": "0.5 kb",
@ -132,7 +132,7 @@
}, },
{ {
"name": "nthmsg", "name": "nthmsg",
"version": "1.02", "version": "1.021",
"section": "chat", "section": "chat",
"maintainer": "seiuneko", "maintainer": "seiuneko",
"size": "0.9 kb", "size": "0.9 kb",
@ -142,7 +142,7 @@
}, },
{ {
"name": "portball", "name": "portball",
"version": "1.452", "version": "1.453",
"section": "chat", "section": "chat",
"maintainer": "Pentacene", "maintainer": "Pentacene",
"size": "2.8 kb", "size": "2.8 kb",
@ -152,7 +152,7 @@
}, },
{ {
"name": "resou", "name": "resou",
"version": "1.22", "version": "1.221",
"section": "daily", "section": "daily",
"maintainer": "KorenKrita、xtaodada、monsterxcn", "maintainer": "KorenKrita、xtaodada、monsterxcn",
"size": "6.1 kb", "size": "6.1 kb",
@ -162,7 +162,7 @@
}, },
{ {
"name": "mjx", "name": "mjx",
"version": "1.01", "version": "1.011",
"section": "profile", "section": "profile",
"maintainer": "KorenKrita", "maintainer": "KorenKrita",
"size": "1 kb", "size": "1 kb",
@ -172,7 +172,7 @@
}, },
{ {
"name": "tel", "name": "tel",
"version": "1.11", "version": "1.111",
"section": "daily", "section": "daily",
"maintainer": "KorenKrita、xtaodada", "maintainer": "KorenKrita、xtaodada",
"size": "1 kb", "size": "1 kb",
@ -182,7 +182,7 @@
}, },
{ {
"name": "whois", "name": "whois",
"version": "1.14", "version": "1.141",
"section": "daily", "section": "daily",
"maintainer": "KorenKrita", "maintainer": "KorenKrita",
"size": "1.1 kb", "size": "1.1 kb",
@ -192,7 +192,7 @@
}, },
{ {
"name": "eat", "name": "eat",
"version": "1.043", "version": "1.044",
"section": "profile", "section": "profile",
"maintainer": "SF_PICK", "maintainer": "SF_PICK",
"size": "22.3 kb", "size": "22.3 kb",
@ -202,7 +202,7 @@
}, },
{ {
"name": "cosplay-multi", "name": "cosplay-multi",
"version": "1.31", "version": "1.311",
"section": "daily", "section": "daily",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "2.4 kb", "size": "2.4 kb",
@ -212,7 +212,7 @@
}, },
{ {
"name": "meizi", "name": "meizi",
"version": "1.81", "version": "1.811",
"section": "daily", "section": "daily",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "4.0 kb", "size": "4.0 kb",
@ -222,7 +222,7 @@
}, },
{ {
"name": "acg-multi", "name": "acg-multi",
"version": "1.41", "version": "1.411",
"section": "daily", "section": "daily",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "2.4 kb", "size": "2.4 kb",
@ -232,7 +232,7 @@
}, },
{ {
"name": "da", "name": "da",
"version": "1.021", "version": "1.022",
"section": "chat", "section": "chat",
"maintainer": "yxkumad", "maintainer": "yxkumad",
"size": "1.6 kb", "size": "1.6 kb",
@ -242,7 +242,7 @@
}, },
{ {
"name": "diss", "name": "diss",
"version": "1.111", "version": "1.112",
"section": "chat", "section": "chat",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "1.4 kb", "size": "1.4 kb",
@ -252,7 +252,7 @@
}, },
{ {
"name": "shangliu", "name": "shangliu",
"version": "1.01", "version": "1.011",
"section": "chat", "section": "chat",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "2.5 kb", "size": "2.5 kb",
@ -262,7 +262,7 @@
}, },
{ {
"name": "neteaseshuffle", "name": "neteaseshuffle",
"version": "1.112", "version": "1.113",
"section": "daily", "section": "daily",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "3.0 kb", "size": "3.0 kb",
@ -272,7 +272,7 @@
}, },
{ {
"name": "neteasedown", "name": "neteasedown",
"version": "1.225", "version": "1.226",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "11.4 kb", "size": "11.4 kb",
@ -282,7 +282,7 @@
}, },
{ {
"name": "killallmembers", "name": "killallmembers",
"version": "1.12", "version": "1.121",
"section": "chat", "section": "chat",
"maintainer": "Pentacene", "maintainer": "Pentacene",
"size": "idk", "size": "idk",
@ -292,7 +292,7 @@
}, },
{ {
"name": "videodl", "name": "videodl",
"version": "0.121", "version": "0.122",
"section": "daily", "section": "daily",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "5.3 kb", "size": "5.3 kb",
@ -302,7 +302,7 @@
}, },
{ {
"name": "aff", "name": "aff",
"version": "1.21", "version": "1.211",
"section": "chat", "section": "chat",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "2.0 kb", "size": "2.0 kb",
@ -312,7 +312,7 @@
}, },
{ {
"name": "stickertopic", "name": "stickertopic",
"version": "1.12", "version": "1.121",
"section": "chat", "section": "chat",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "3.5 kb", "size": "3.5 kb",
@ -322,7 +322,7 @@
}, },
{ {
"name": "vip", "name": "vip",
"version": "0.713", "version": "0.714",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "11.6 kb", "size": "11.6 kb",
@ -332,7 +332,7 @@
}, },
{ {
"name": "calculator", "name": "calculator",
"version": "1.02", "version": "1.021",
"section": "chat", "section": "chat",
"maintainer": "Pentacene", "maintainer": "Pentacene",
"size": "1.0 kb", "size": "1.0 kb",
@ -342,7 +342,7 @@
}, },
{ {
"name": "paolu", "name": "paolu",
"version": "1.021", "version": "1.022",
"section": "chat", "section": "chat",
"maintainer": "Pentacene", "maintainer": "Pentacene",
"size": "1.0 kb", "size": "1.0 kb",
@ -352,7 +352,7 @@
}, },
{ {
"name": "autoreplysticker", "name": "autoreplysticker",
"version": "1.232", "version": "1.233",
"section": "chat", "section": "chat",
"maintainer": "Pentacene", "maintainer": "Pentacene",
"size": "12 kb", "size": "12 kb",
@ -362,7 +362,7 @@
}, },
{ {
"name": "deletemsgsfromgrps", "name": "deletemsgsfromgrps",
"version": "1.02", "version": "1.021",
"section": "chat", "section": "chat",
"maintainer": "Pentacene", "maintainer": "Pentacene",
"size": "4 kb", "size": "4 kb",
@ -372,7 +372,7 @@
}, },
{ {
"name": "keyword", "name": "keyword",
"version": "2.702", "version": "2.703",
"section": "chat", "section": "chat",
"maintainer": "c3b2a,xtaodada", "maintainer": "c3b2a,xtaodada",
"size": "47.6 kb", "size": "47.6 kb",
@ -382,7 +382,7 @@
}, },
{ {
"name": "transfer", "name": "transfer",
"version": "1.02", "version": "1.021",
"section": "daily", "section": "daily",
"maintainer": "c3b2a", "maintainer": "c3b2a",
"size": "2.7 kb", "size": "2.7 kb",
@ -392,7 +392,7 @@
}, },
{ {
"name": "xjj", "name": "xjj",
"version": "1.02", "version": "1.021",
"section": "daily", "section": "daily",
"maintainer": "Moriarty-989", "maintainer": "Moriarty-989",
"size": "1.4 kb", "size": "1.4 kb",
@ -402,7 +402,7 @@
}, },
{ {
"name": "zpr", "name": "zpr",
"version": "1.01", "version": "1.011",
"section": "daily", "section": "daily",
"maintainer": "Moriarty-989", "maintainer": "Moriarty-989",
"size": "1.4 kb", "size": "1.4 kb",
@ -412,7 +412,7 @@
}, },
{ {
"name": "forcesend", "name": "forcesend",
"version": "1.01", "version": "1.011",
"section": "chat", "section": "chat",
"maintainer": "fruitymelon", "maintainer": "fruitymelon",
"size": "1.3 kb", "size": "1.3 kb",
@ -422,7 +422,7 @@
}, },
{ {
"name": "ghs", "name": "ghs",
"version": "1.01", "version": "1.011",
"section": "chat", "section": "chat",
"maintainer": "akun", "maintainer": "akun",
"size": "1.3 kb", "size": "1.3 kb",
@ -432,7 +432,7 @@
}, },
{ {
"name": "bc", "name": "bc",
"version": "1.231", "version": "1.232",
"section": "chat", "section": "chat",
"maintainer": "Pentacene", "maintainer": "Pentacene",
"size": "8.0 kb", "size": "8.0 kb",
@ -442,7 +442,7 @@
}, },
{ {
"name": "diy", "name": "diy",
"version": "1.01", "version": "1.011",
"section": "chat", "section": "chat",
"maintainer": "ahhhiiii,xtaodada", "maintainer": "ahhhiiii,xtaodada",
"size": "2.9 kb", "size": "2.9 kb",
@ -452,7 +452,7 @@
}, },
{ {
"name": "bingwall", "name": "bingwall",
"version": "1.01", "version": "1.011",
"section": "chat", "section": "chat",
"maintainer": "ahhhiiii", "maintainer": "ahhhiiii",
"size": "1.9 kb", "size": "1.9 kb",
@ -462,7 +462,7 @@
}, },
{ {
"name": "pl", "name": "pl",
"version": "1.031", "version": "1.032",
"section": "chat", "section": "chat",
"maintainer": "lowking", "maintainer": "lowking",
"size": "4.0 kb", "size": "4.0 kb",
@ -472,7 +472,7 @@
}, },
{ {
"name": "rape", "name": "rape",
"version": "1.033", "version": "1.034",
"section": "chat", "section": "chat",
"maintainer": "Pentacene", "maintainer": "Pentacene",
"size": "4.0 kb", "size": "4.0 kb",
@ -482,7 +482,7 @@
}, },
{ {
"name": "fuck", "name": "fuck",
"version": "1.023", "version": "1.024",
"section": "chat", "section": "chat",
"maintainer": "Pentacene", "maintainer": "Pentacene",
"size": "4.0 kb", "size": "4.0 kb",
@ -492,7 +492,7 @@
}, },
{ {
"name": "groupword", "name": "groupword",
"version": "1.06", "version": "1.061",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "3.32 kb", "size": "3.32 kb",
@ -502,7 +502,7 @@
}, },
{ {
"name": "kongge", "name": "kongge",
"version": "1.04", "version": "1.041",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "4.0 kb", "size": "4.0 kb",
@ -512,7 +512,7 @@
}, },
{ {
"name": "getstickers", "name": "getstickers",
"version": "1.111", "version": "1.112",
"section": "chat", "section": "chat",
"maintainer": "xtaodada,Vesugierii", "maintainer": "xtaodada,Vesugierii",
"size": "5.4 kb", "size": "5.4 kb",
@ -522,7 +522,7 @@
}, },
{ {
"name": "fucksticker", "name": "fucksticker",
"version": "1.0", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "1.14 kb", "size": "1.14 kb",
@ -532,7 +532,7 @@
}, },
{ {
"name": "pic2sticker", "name": "pic2sticker",
"version": "1.01", "version": "1.011",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "4.7 kb", "size": "4.7 kb",
@ -542,7 +542,7 @@
}, },
{ {
"name": "listusernames", "name": "listusernames",
"version": "1.0", "version": "1.01",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "0.7 kb", "size": "0.7 kb",
@ -552,7 +552,7 @@
}, },
{ {
"name": "fuckadmin", "name": "fuckadmin",
"version": "1.11", "version": "1.111",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "2.9 kb", "size": "2.9 kb",
@ -562,7 +562,7 @@
}, },
{ {
"name": "bin", "name": "bin",
"version": "1.02", "version": "1.021",
"section": "daily", "section": "daily",
"maintainer": "paulkm", "maintainer": "paulkm",
"size": "1.8 kb", "size": "1.8 kb",
@ -572,7 +572,7 @@
}, },
{ {
"name": "fuckmember", "name": "fuckmember",
"version": "1.033", "version": "1.034",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "3.0 kb", "size": "3.0 kb",
@ -582,7 +582,7 @@
}, },
{ {
"name": "unbanby", "name": "unbanby",
"version": "1.01", "version": "1.011",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "2.8 kb", "size": "2.8 kb",
@ -592,7 +592,7 @@
}, },
{ {
"name": "forcesubscribe", "name": "forcesubscribe",
"version": "1.06", "version": "1.061",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "4.2 kb", "size": "4.2 kb",
@ -602,7 +602,7 @@
}, },
{ {
"name": "forcegroup", "name": "forcegroup",
"version": "1.02", "version": "1.021",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "3.6 kb", "size": "3.6 kb",
@ -612,7 +612,7 @@
}, },
{ {
"name": "repeat", "name": "repeat",
"version": "1.0", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "1.8 kb", "size": "1.8 kb",
@ -622,7 +622,7 @@
}, },
{ {
"name": "kickanddm", "name": "kickanddm",
"version": "1.0", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "lowking", "maintainer": "lowking",
"size": "5.6 kb", "size": "5.6 kb",
@ -632,7 +632,7 @@
}, },
{ {
"name": "fuckmessage", "name": "fuckmessage",
"version": "1.01", "version": "1.011",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "1.3 kb", "size": "1.3 kb",
@ -642,7 +642,7 @@
}, },
{ {
"name": "yyr", "name": "yyr",
"version": "1.0", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada、kld", "maintainer": "xtaodada、kld",
"size": "0.9 kb", "size": "0.9 kb",
@ -652,7 +652,7 @@
}, },
{ {
"name": "chatbot", "name": "chatbot",
"version": "1.0", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "1.2 kb", "size": "1.2 kb",
@ -662,7 +662,7 @@
}, },
{ {
"name": "square", "name": "square",
"version": "1.0", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "Vesugierii", "maintainer": "Vesugierii",
"size": "1.2 kb", "size": "1.2 kb",
@ -672,7 +672,7 @@
}, },
{ {
"name": "groupindex", "name": "groupindex",
"version": "1.121", "version": "1.122",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "3.2 kb", "size": "3.2 kb",
@ -682,7 +682,7 @@
}, },
{ {
"name": "yvlu", "name": "yvlu",
"version": "1.213", "version": "1.214",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "10.4 kb", "size": "10.4 kb",
@ -692,7 +692,7 @@
}, },
{ {
"name": "antichannelmsg", "name": "antichannelmsg",
"version": "1.001", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "4.8 kb", "size": "4.8 kb",
@ -702,7 +702,7 @@
}, },
{ {
"name": "antichannelpin", "name": "antichannelpin",
"version": "1.0", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "2.8 kb", "size": "2.8 kb",
@ -712,7 +712,7 @@
}, },
{ {
"name": "shift", "name": "shift",
"version": "1.03", "version": "1.031",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "5.3 kb", "size": "5.3 kb",
@ -722,7 +722,7 @@
}, },
{ {
"name": "getstickerset", "name": "getstickerset",
"version": "1.01", "version": "1.011",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "4.4 kb", "size": "4.4 kb",
@ -732,7 +732,7 @@
}, },
{ {
"name": "autodel", "name": "autodel",
"version": "1.001", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "5.7 kb", "size": "5.7 kb",
@ -742,7 +742,7 @@
}, },
{ {
"name": "antisticker", "name": "antisticker",
"version": "1.02", "version": "1.021",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "0.7 kb", "size": "0.7 kb",
@ -752,7 +752,7 @@
}, },
{ {
"name": "yinglish", "name": "yinglish",
"version": "1.00", "version": "1.001",
"section": "chat", "section": "chat",
"maintainer": "YU", "maintainer": "YU",
"size": "1.7 kb", "size": "1.7 kb",
@ -762,7 +762,7 @@
}, },
{ {
"name": "findmessage", "name": "findmessage",
"version": "1.00", "version": "1.001",
"section": "chat", "section": "chat",
"maintainer": "vesugier", "maintainer": "vesugier",
"size": "1.44 kb", "size": "1.44 kb",
@ -772,7 +772,7 @@
}, },
{ {
"name": "epic", "name": "epic",
"version": "1.01", "version": "1.011",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "5.80 kb", "size": "5.80 kb",
@ -782,7 +782,7 @@
}, },
{ {
"name": "covid-en", "name": "covid-en",
"version": "1.001", "version": "1.01",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "1.70 kb", "size": "1.70 kb",
@ -792,7 +792,7 @@
}, },
{ {
"name": "covid", "name": "covid",
"version": "1.01", "version": "1.011",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "3.90 kb", "size": "3.90 kb",
@ -802,7 +802,7 @@
}, },
{ {
"name": "moyu", "name": "moyu",
"version": "1.02", "version": "1.021",
"section": "daily", "section": "daily",
"maintainer": "sam01101", "maintainer": "sam01101",
"size": "3.00 kb", "size": "3.00 kb",
@ -812,7 +812,7 @@
}, },
{ {
"name": "jd_cmd", "name": "jd_cmd",
"version": "1.01", "version": "1.011",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "1.00 kb", "size": "1.00 kb",
@ -822,7 +822,7 @@
}, },
{ {
"name": "crazy4", "name": "crazy4",
"version": "1.0", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "17.10 kb", "size": "17.10 kb",
@ -832,13 +832,23 @@
}, },
{ {
"name": "dme", "name": "dme",
"version": "1.201", "version": "1.21",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "0.4 kb", "size": "0.4 kb",
"supported": true, "supported": true,
"des-short": "删除当前对话您发送的特定数量的消息。", "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"
} }
] ]
} }

View File

@ -1,4 +1,4 @@
from pagermaid import bot from pagermaid import bot, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from telethon.tl.functions.channels import GetAdminedPublicChannelsRequest from telethon.tl.functions.channels import GetAdminedPublicChannelsRequest

View File

@ -1,5 +1,6 @@
import random import random
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from os import remove from os import remove

1
mjx.py
View File

@ -1,5 +1,6 @@
import json import json
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -4,7 +4,7 @@ import datetime
from random import choice from random import choice
import pytz import pytz
from pagermaid import bot from pagermaid import bot, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,5 +1,6 @@
import json import json
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -6,6 +6,7 @@ from os import sep, remove, listdir
from os.path import isfile, exists from os.path import isfile, exists
from time import strftime, localtime from time import strftime, localtime
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, execute, pip_install from pagermaid.utils import alias_command, execute, pip_install

View File

@ -8,7 +8,7 @@ import random
import math import math
from time import sleep from time import sleep
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid import bot from pagermaid import bot, version
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from os import remove, path, mkdir, getcwd from os import remove, path, mkdir, getcwd
from os.path import exists from os.path import exists

View File

@ -1,6 +1,7 @@
import json import json
import requests import requests
from time import sleep from time import sleep
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from os import remove, path from os import remove, path
from pagermaid.utils import alias_command, pip_install from pagermaid.utils import alias_command, pip_install

View File

@ -1,6 +1,7 @@
from pagermaid.listener import listener from pagermaid.listener import listener
from telethon import functions, types from telethon import functions, types
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from pagermaid import version
@listener(outgoing=True, command=alias_command("nthmsg"), @listener(outgoing=True, command=alias_command("nthmsg"),

View File

@ -9,6 +9,7 @@
from asyncio import sleep from asyncio import sleep
from telethon.errors.common import MultiError from telethon.errors.common import MultiError
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -4,7 +4,7 @@ from io import BytesIO
from telethon.tl.types import DocumentAttributeFilename, MessageMediaPhoto, MessageMediaWebPage from telethon.tl.types import DocumentAttributeFilename, MessageMediaPhoto, MessageMediaWebPage
from PIL import Image, ImageOps from PIL import Image, ImageOps
from math import floor 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.listener import listener
from pagermaid.utils import lang, alias_command from pagermaid.utils import lang, alias_command

1
pl.py
View File

@ -5,6 +5,7 @@
from asyncio import sleep from asyncio import sleep
from requests import get from requests import get
from sys import executable from sys import executable
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, pip_install from pagermaid.utils import alias_command, pip_install

View File

@ -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 pagermaid.listener import listener
from telethon.errors import rpcerrorlist from telethon.errors import rpcerrorlist
from asyncio import sleep from asyncio import sleep

View File

@ -10,6 +10,7 @@
from datetime import timedelta from datetime import timedelta
from telethon.tl.types import ChannelParticipantsAdmins from telethon.tl.types import ChannelParticipantsAdmins
from telethon.errors.rpcerrorlist import ChatAdminRequiredError from telethon.errors.rpcerrorlist import ChatAdminRequiredError
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -4,7 +4,7 @@ import json, time
from json.decoder import JSONDecodeError from json.decoder import JSONDecodeError
import urllib.request import urllib.request
from pagermaid.listener import listener, config from pagermaid.listener import listener, config
from pagermaid import log from pagermaid import log, version
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
# i18n # i18n

View File

@ -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.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,6 +1,7 @@
import json import json
from requests import get from requests import get
from json.decoder import JSONDecodeError from json.decoder import JSONDecodeError
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -4,7 +4,7 @@
# extra requirements: dateparser # extra requirements: dateparser
import sys, time, traceback import sys, time, traceback
import asyncio import asyncio
from pagermaid import log from pagermaid import log, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, pip_install from pagermaid.utils import alias_command, pip_install

View File

@ -1,5 +1,6 @@
from time import sleep from time import sleep
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -2,7 +2,7 @@
from asyncio import sleep from asyncio import sleep
from random import uniform from random import uniform
from telethon.errors.rpcerrorlist import FloodWaitError 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.utils import lang, alias_command
from pagermaid.listener import listener from pagermaid.listener import listener

View File

@ -1,5 +1,7 @@
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from pagermaid import version
@listener(is_plugin=True, outgoing=True, command=alias_command("square"), @listener(is_plugin=True, outgoing=True, command=alias_command("square"),
description="生成文本矩形", description="生成文本矩形",

View File

@ -3,7 +3,7 @@ from os import remove
from io import BytesIO from io import BytesIO
from telethon.tl.types import DocumentAttributeFilename, MessageMediaPhoto, MessageMediaWebPage from telethon.tl.types import DocumentAttributeFilename, MessageMediaPhoto, MessageMediaWebPage
from PIL import Image from PIL import Image
from pagermaid import bot from pagermaid import bot, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from random import random from random import random

1
tel.py
View File

@ -3,6 +3,7 @@ import sys, codecs
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import obtain_message, alias_command from pagermaid.utils import obtain_message, alias_command

View File

@ -9,6 +9,7 @@ from telethon.tl.functions.users import GetFullUserRequest
from telethon.tl.types import MessageEntityMentionName from telethon.tl.types import MessageEntityMentionName
from telethon.errors.rpcerrorlist import ChatSendStickersForbiddenError from telethon.errors.rpcerrorlist import ChatSendStickersForbiddenError
from struct import error as StructError from struct import error as StructError
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,7 +1,7 @@
import asyncio, zipfile, os import asyncio, zipfile, os
from io import BytesIO from io import BytesIO
from os.path import exists, isfile from os.path import exists, isfile
from pagermaid import bot from pagermaid import bot, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,5 +1,6 @@
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from pagermaid import version
from telethon.tl.types import ChannelParticipantsKicked, ChannelParticipantsAdmins from telethon.tl.types import ChannelParticipantsKicked, ChannelParticipantsAdmins
from telethon.errors.rpcerrorlist import UserAdminInvalidError, ChatAdminRequiredError, FloodWaitError from telethon.errors.rpcerrorlist import UserAdminInvalidError, ChatAdminRequiredError, FloodWaitError
from asyncio import sleep from asyncio import sleep

View File

@ -4,7 +4,7 @@ import json
from os import remove, mkdir from os import remove, mkdir
from os.path import exists from os.path import exists
from re import compile as regex_compile 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.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from telethon.tl.types import DocumentAttributeVideo from telethon.tl.types import DocumentAttributeVideo

2
vip.py
View File

@ -4,7 +4,7 @@ from requests import get
from os import remove from os import remove
from telethon.tl.types import MessageMediaPhoto from telethon.tl.types import MessageMediaPhoto
from asyncio import TimeoutError 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.listener import listener
from pagermaid.utils import obtain_message, alias_command from pagermaid.utils import obtain_message, alias_command

View File

@ -1,6 +1,7 @@
import json import json
import datetime import datetime
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import obtain_message, alias_command from pagermaid.utils import obtain_message, alias_command

View File

@ -1,6 +1,7 @@
import json import json
from json import JSONDecodeError from json import JSONDecodeError
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import obtain_message, alias_command from pagermaid.utils import obtain_message, alias_command

1
xjj.py
View File

@ -1,5 +1,6 @@
import random import random
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from os import remove from os import remove

View File

@ -1,7 +1,7 @@
""" Pagermaid plugin base. """ """ Pagermaid plugin base. """
import json, requests, re import json, requests, re
from urllib.parse import urlparse from urllib.parse import urlparse
from pagermaid import bot, log from pagermaid import bot, log, version
from pagermaid.listener import listener, config from pagermaid.listener import listener, config
from pagermaid.utils import clear_emojis, obtain_message, attach_log, alias_command from pagermaid.utils import clear_emojis, obtain_message, attach_log, alias_command
from telethon.errors import ChatAdminRequiredError from telethon.errors import ChatAdminRequiredError

View File

@ -5,7 +5,7 @@ from os.path import exists
from youtube_dl import YoutubeDL from youtube_dl import YoutubeDL
from youtube_dl.utils import DownloadError from youtube_dl.utils import DownloadError
from re import compile as regex_compile 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.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

View File

@ -1,7 +1,7 @@
import random import random
from asyncio import sleep from asyncio import sleep
from sys import executable from sys import executable
from pagermaid import log from pagermaid import log, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command, execute from pagermaid.utils import alias_command, execute

View File

@ -9,7 +9,7 @@ from telethon.tl.functions.contacts import UnblockRequest
from telethon.tl.functions.users import GetFullUserRequest from telethon.tl.functions.users import GetFullUserRequest
from telethon.tl.types import MessageMediaPhoto, MessageMediaWebPage, MessageMediaUnsupported from telethon.tl.types import MessageMediaPhoto, MessageMediaWebPage, MessageMediaUnsupported
from asyncio import TimeoutError from asyncio import TimeoutError
from pagermaid import bot from pagermaid import bot, version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

1
yyr.py
View File

@ -1,4 +1,5 @@
import json, requests import json, requests
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command

1
zpr.py
View File

@ -1,5 +1,6 @@
import random import random
from requests import get from requests import get
from pagermaid import version
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import alias_command from pagermaid.utils import alias_command
from os import remove from os import remove