From 5ac0b45540aa70482e1331f3dd2b2c13869bc223 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Mon, 7 Nov 2022 09:41:45 +0800 Subject: [PATCH] fix WoodenFish.java --- src/main/java/com/yutou/qqbot/models/Commands/WoodenFish.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/yutou/qqbot/models/Commands/WoodenFish.java b/src/main/java/com/yutou/qqbot/models/Commands/WoodenFish.java index 8784220..92c0cd1 100644 --- a/src/main/java/com/yutou/qqbot/models/Commands/WoodenFish.java +++ b/src/main/java/com/yutou/qqbot/models/Commands/WoodenFish.java @@ -27,7 +27,7 @@ public class WoodenFish extends Model { @Override public void onMessage(Long qq, MessageEvent event, boolean isGroup) { super.onMessage(qq, event, isGroup); - if("地狱笑话".equals(msg)){ + if(msg.contains("地狱笑话")){ QQBotManager.getInstance().sendMessage(qq,"功德+1"); } }