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: