summaryrefslogtreecommitdiff
path: root/ATRI/plugins/funny.py
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins/funny.py')
-rw-r--r--ATRI/plugins/funny.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ATRI/plugins/funny.py b/ATRI/plugins/funny.py
index 9d31ef6..a31cfdf 100644
--- a/ATRI/plugins/funny.py
+++ b/ATRI/plugins/funny.py
@@ -41,7 +41,8 @@ me_to_you = on_message(
@me_to_you.handle()
async def _me_to_you(bot: Bot, event: MessageEvent) -> None:
- rd = randint(0, 4)
+ rd = randint(0, 5)
if rd == 1:
- msg = str(event.get_message())
- await me_to_you.finish(msg.replace('我', '你'))
+ msg = str(event.message)
+ if "我" in msg:
+ await me_to_you.finish(msg.replace('我', '你'))