sendat keyword lottery 修改权限等级

This commit is contained in:
xtaodada 2022-07-19 22:07:11 +08:00
parent 2efb98eada
commit cc61e7ab69
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
4 changed files with 6 additions and 3 deletions

View File

@ -254,6 +254,7 @@ async def from_msg_get_task_id(message: Message):
@listener(command="keyword",
parameters="指定参数",
need_admin=True,
description="关键词回复\n\nhttps://telegra.ph/PagerMaid-keyword-07-12")
async def keyword_set(message: Message):
if message.arguments == "h" or len(message.parameter) == 0:

View File

@ -292,7 +292,7 @@
},
{
"name": "sendat",
"version": "1.003",
"version": "1.004",
"section": "chat",
"maintainer": "xtaodada",
"size": "12.2 kb",
@ -312,7 +312,7 @@
},
{
"name": "keyword",
"version": "1.001",
"version": "1.002",
"section": "chat",
"maintainer": "xtaodada",
"size": "10.9 kb",
@ -362,7 +362,7 @@
},
{
"name": "lottery",
"version": "1.001",
"version": "1.002",
"section": "chat",
"maintainer": "xtaodada",
"size": "4.51 kb",

View File

@ -91,6 +91,7 @@ async def create_lottery(chat_id: int, num: int, win: int, title: str, keyword:
@listener(command="lottery",
groups_only=True,
need_admin=True,
parameters="<奖品数/人数> <关键词> <标题> / 强制开奖",
description=f"举行抽奖活动\n\n例如:,{alias_command('lottery')} 1/10 测试 测试")
async def lottery(message: Message):

View File

@ -287,6 +287,7 @@ async def from_msg_get_task_id(message: Message):
@listener(command="sendat",
parameters="时间 | 消息内容",
need_admin=True,
description=f"定时发送消息\n请使用 ,{alias_command('sendat')} h 查看可用命令")
async def send_at(message: Message):
if message.arguments == "h" or len(message.parameter) == 0: