补充QQ发出AI内容消息
This commit is contained in:
parent
9ea1450066
commit
2000efdd55
@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class QQBotApplication {
|
||||
public static final String version="QQBot v.1.6";
|
||||
public static final String version="QQBot v.1.6.1";
|
||||
public static void main(String[] args) {
|
||||
System.out.println("version = " + version);
|
||||
SpringApplication.run(QQBotApplication.class, args);
|
||||
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson2.JSONArray;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.yutou.qqbot.Annotations.UseModel;
|
||||
import com.yutou.qqbot.QQBotManager;
|
||||
import com.yutou.qqbot.QQNumberManager;
|
||||
import com.yutou.qqbot.bilibili.*;
|
||||
import com.yutou.qqbot.interfaces.ObjectInterface;
|
||||
import com.yutou.qqbot.models.Model;
|
||||
@ -64,7 +65,10 @@ public class BiliVideo extends Model {
|
||||
if (event.getMessage().get(1) instanceof QuoteReply) {
|
||||
int id = ((QuoteReply) event.getMessage().get(1)).getSource().getIds()[0];
|
||||
if (msg.contains("省流") || msg.contains("总结")) {
|
||||
onAIVideo(id);
|
||||
String value = onAIVideo(id);
|
||||
if(StringUtils.isEmpty(value)){
|
||||
QQBotManager.getInstance().sendMessage(qq,value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user