mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 14:14:06 +00:00
denyu groupindex fix a bug
This commit is contained in:
parent
1af15553ba
commit
26bbc145d3
4
denyu.py
4
denyu.py
@ -24,7 +24,11 @@ async def denyu(context):
|
|||||||
if not reply_to_msg:
|
if not reply_to_msg:
|
||||||
await context.edit("在某群中强制禁言某用户,需要删除他人消息权限,需要 redis。用法:回复某条消息,格式为 `-denyu <true|false|status>`")
|
await context.edit("在某群中强制禁言某用户,需要删除他人消息权限,需要 redis。用法:回复某条消息,格式为 `-denyu <true|false|status>`")
|
||||||
return
|
return
|
||||||
|
try:
|
||||||
uid = reply_to_msg.sender.id
|
uid = reply_to_msg.sender.id
|
||||||
|
except AttributeError:
|
||||||
|
await context.edit("出错了呜呜呜 ~ 无法读取用户 id")
|
||||||
|
return
|
||||||
offset = 1
|
offset = 1
|
||||||
else:
|
else:
|
||||||
uid = context.parameter[0]
|
uid = context.parameter[0]
|
||||||
|
@ -12,7 +12,11 @@ async def group_index(context):
|
|||||||
await context.edit('请在群组中运行。')
|
await context.edit('请在群组中运行。')
|
||||||
return
|
return
|
||||||
# 获取群组信息
|
# 获取群组信息
|
||||||
|
try:
|
||||||
title = context.chat.title
|
title = context.chat.title
|
||||||
|
except AttributeError:
|
||||||
|
await context.edit('读取群组信息失败。')
|
||||||
|
return
|
||||||
end_id = context.id
|
end_id = context.id
|
||||||
text = f'以下是群组 {title} 今日的活跃数据:\n'
|
text = f'以下是群组 {title} 今日的活跃数据:\n'
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "denyu",
|
"name": "denyu",
|
||||||
"version": "1.11",
|
"version": "1.111",
|
||||||
"section": "chat",
|
"section": "chat",
|
||||||
"maintainer": "fruitymelon",
|
"maintainer": "fruitymelon",
|
||||||
"size": "2.7 kb",
|
"size": "2.7 kb",
|
||||||
@ -692,7 +692,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "groupindex",
|
"name": "groupindex",
|
||||||
"version": "1.11",
|
"version": "1.12",
|
||||||
"section": "daily",
|
"section": "daily",
|
||||||
"maintainer": "xtaodada",
|
"maintainer": "xtaodada",
|
||||||
"size": "3.2 kb",
|
"size": "3.2 kb",
|
||||||
|
Loading…
Reference in New Issue
Block a user