大头菜支持群@
This commit is contained in:
parent
ba7b933bdb
commit
7d1128cc1d
@ -62,7 +62,7 @@ public class TurnipProphet extends Model {
|
||||
user = qq;
|
||||
sendQQ = qq;
|
||||
if (isGroup) {
|
||||
if (!event.getMessage().serializeToMiraiCode().contains("[mirai:at:3620756944]")) {
|
||||
if (!event.getMessage().serializeToMiraiCode().contains("[mirai:at:2476945931]")) {
|
||||
return;
|
||||
}
|
||||
user = event.getSource().getFromId();
|
||||
@ -70,7 +70,7 @@ public class TurnipProphet extends Model {
|
||||
int money = -1;
|
||||
try {
|
||||
if (isGroup) {
|
||||
msg = msg.replace("@3620756944", "");
|
||||
msg = msg.replace("@2476945931", "");
|
||||
}
|
||||
money = Integer.parseInt(msg.trim());
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user