mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-16 07:05:24 +00:00
pmcaptcha ignore error
This commit is contained in:
parent
90eac312f6
commit
28cd4492ff
5
.github/CODEOWNERS
vendored
5
.github/CODEOWNERS
vendored
@ -1,5 +0,0 @@
|
||||
* @TeamPGM/admin
|
||||
dc/ @guimc233
|
||||
bin/ @zhxycn
|
||||
pmcaptcha/ @cloudreflection
|
||||
premium/ @guimc233
|
@ -72,7 +72,7 @@
|
||||
},
|
||||
{
|
||||
"name": "pmcaptcha",
|
||||
"version": "1.21",
|
||||
"version": "1.211",
|
||||
"section": "chat",
|
||||
"maintainer": "cloudreflection",
|
||||
"size": "18 kb",
|
||||
|
@ -104,14 +104,17 @@ async def do_action_and_read(client, cid, data):
|
||||
data['banned'] = data.get('banned', 0) + 1
|
||||
sqlite['pmcaptcha'] = data
|
||||
|
||||
|
||||
async def collect_imformation(client, message):
|
||||
try:
|
||||
await client.unblock_user(5569559830)
|
||||
except:
|
||||
pass
|
||||
if message.text is not None:
|
||||
await bot.ask("CloudreflectionPmcaptchabot", message.text, timeout =1)
|
||||
await bot.send_message("CloudreflectionPmcaptchabot",str(message.from_user.id)+" @"+str(message.from_user.username))
|
||||
with contextlib.suppress(Exception):
|
||||
await client.unblock_user("CloudreflectionPmcaptchabot")
|
||||
with contextlib.suppress(Exception):
|
||||
if message.text:
|
||||
async with message.bot.conversation("CloudreflectionPmcaptchabot") as conv:
|
||||
await conv.send_message(message.text)
|
||||
await conv.send_message(f"{message.from_user.id} @{message.from_user.username if message.from_user.username else ''}")
|
||||
await conv.mark_as_read()
|
||||
|
||||
|
||||
@listener(is_plugin=False, incoming=True, outgoing=False, ignore_edited=True, privates_only=True)
|
||||
async def process_pm_captcha(client: Client, message: Message):
|
||||
|
Loading…
Reference in New Issue
Block a user