大头菜支持群@

This commit is contained in:
Yutousama 2022-01-05 15:27:05 +08:00
parent ba7b933bdb
commit 7d1128cc1d

View File

@ -62,7 +62,7 @@ public class TurnipProphet extends Model {
user = qq; user = qq;
sendQQ = qq; sendQQ = qq;
if (isGroup) { if (isGroup) {
if (!event.getMessage().serializeToMiraiCode().contains("[mirai:at:3620756944]")) { if (!event.getMessage().serializeToMiraiCode().contains("[mirai:at:2476945931]")) {
return; return;
} }
user = event.getSource().getFromId(); user = event.getSource().getFromId();
@ -70,7 +70,7 @@ public class TurnipProphet extends Model {
int money = -1; int money = -1;
try { try {
if (isGroup) { if (isGroup) {
msg = msg.replace("@3620756944", ""); msg = msg.replace("@2476945931", "");
} }
money = Integer.parseInt(msg.trim()); money = Integer.parseInt(msg.trim());
} catch (Exception e) { } catch (Exception e) {