同步
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
package com.mtz.qqbot.Controller;
|
||||
|
||||
public class LIstenerController {
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.mtz.qqbot.Controller;
|
||||
|
||||
import com.mtz.qqbot.Listener.HandleMessageListener;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@@ -14,4 +15,5 @@ public class testController {
|
||||
"今日群聊2消息:[" + HandleMessageListener.group2MessageCount + "]条\n" +
|
||||
"今日收到的群聊临时会话消息:[" + HandleMessageListener.groupTempMessageCount + "]条\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ import net.itbaima.robot.listener.MessageListener;
|
||||
import net.mamoe.mirai.event.events.GroupMessageEvent;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RobotListener
|
||||
public class RecallMessageListener extends MessageListener {
|
||||
public static int group1InvalidCount = 0;
|
||||
@@ -22,6 +21,7 @@ public class RecallMessageListener extends MessageListener {
|
||||
event.getSender().mute(60);
|
||||
Thread.sleep(500);//防止操作太快被腾讯封禁
|
||||
this.recallMessage(event.getMessage());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 559 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 328 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 116 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
@@ -107,7 +107,10 @@
|
||||
<span>#05 接收消息</span>
|
||||
<div class="内容">
|
||||
<img src="">
|
||||
<img src="image">
|
||||
<img src="image/接收1.jpg">
|
||||
<img src="image/接收2.jpg">
|
||||
<img src="image/接收3.jpg">
|
||||
<img src="image/接收4.png">
|
||||
|
||||
|
||||
<p>在群聊中或者与机器人进行私聊,控制台便可以接收到信息</p>
|
||||
|
||||
Reference in New Issue
Block a user