summaryrefslogtreecommitdiff
path: root/ATRI/plugins/curse
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins/curse')
-rw-r--r--ATRI/plugins/curse/__init__.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/ATRI/plugins/curse/__init__.py b/ATRI/plugins/curse/__init__.py
index ee4ea58..5085dbf 100644
--- a/ATRI/plugins/curse/__init__.py
+++ b/ATRI/plugins/curse/__init__.py
@@ -18,19 +18,17 @@ __doc__ = """
口臭,口臭一下,骂我
"""
-curse = sv.on_message(rule=is_in_service('口臭'))
-sv.manual_reg_service('口臭', __doc__)
+curse = sv.on_command(
+ cmd='口臭',
+ docs=__doc__,
+ aliases={'口臭一下,骂我'},
+ rule=is_in_service('口臭')
+)
@curse.handle()
async def _curse(bot: Bot, event: MessageEvent) -> None:
global sick_list
- msg = str(event.message)
user = event.get_user_id()
- curse_key = ['口臭', '口臭一下', '骂我']
-
- if msg not in curse_key:
- return
-
if count_list(sick_list, user) == 3:
sick_list.append(user)
repo = (