update PaoPaoSleepWaring
This commit is contained in:
parent
1456675446
commit
ae72956f68
@ -32,7 +32,7 @@ public class PaoPaoSleepWaring extends Model {
|
|||||||
public void onMessage(Long qq, MessageEvent event, boolean isGroup) {
|
public void onMessage(Long qq, MessageEvent event, boolean isGroup) {
|
||||||
super.onMessage(qq, event, isGroup);
|
super.onMessage(qq, event, isGroup);
|
||||||
if(Integer.parseInt(AppTools.getHours())>=22 && event.getSource().getFromId() == 914520754
|
if(Integer.parseInt(AppTools.getHours())>=22 && event.getSource().getFromId() == 914520754
|
||||||
&& "true".equals(RedisTools.get("paopao_sleep_"+AppTools.getToDayTime(),"false"))){
|
&& "false".equals(RedisTools.get("paopao_sleep_"+AppTools.getToDayTime(),"false"))){
|
||||||
MessageChainBuilder builder=new MessageChainBuilder();
|
MessageChainBuilder builder=new MessageChainBuilder();
|
||||||
builder.append(new QuoteReply(event.getMessage()));
|
builder.append(new QuoteReply(event.getMessage()));
|
||||||
builder.append("别水了,该睡了~");
|
builder.append("别水了,该睡了~");
|
||||||
|
Loading…
Reference in New Issue
Block a user