From cc61e7ab69add22581e1e9e34e377e950eb286eb Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 19 Jul 2022 22:07:11 +0800 Subject: [PATCH] =?UTF-8?q?sendat=20keyword=20lottery=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=9D=83=E9=99=90=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keyword/main.py | 1 + list.json | 6 +++--- lottery/main.py | 1 + sendat/main.py | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/keyword/main.py b/keyword/main.py index 6b82f6c..cd82cda 100644 --- a/keyword/main.py +++ b/keyword/main.py @@ -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: diff --git a/list.json b/list.json index 1619853..189aa34 100644 --- a/list.json +++ b/list.json @@ -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", diff --git a/lottery/main.py b/lottery/main.py index edab589..da29df8 100644 --- a/lottery/main.py +++ b/lottery/main.py @@ -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): diff --git a/sendat/main.py b/sendat/main.py index 2eb9036..4149d6d 100644 --- a/sendat/main.py +++ b/sendat/main.py @@ -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: