add:优化 #4 涩图模块图文分离
This commit is contained in:
parent
4fabd514a7
commit
8160d64867
@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class QQBotApplication {
|
public class QQBotApplication {
|
||||||
public static final String version="QQBot v.1.3.3";
|
public static final String version="QQBot v.1.3.4";
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println("version = " + version);
|
System.out.println("version = " + version);
|
||||||
SpringApplication.run(QQBotApplication.class, args);
|
SpringApplication.run(QQBotApplication.class, args);
|
||||||
|
@ -12,8 +12,10 @@ import com.yutou.qqbot.utlis.Log;
|
|||||||
import com.yutou.qqbot.utlis.RedisTools;
|
import com.yutou.qqbot.utlis.RedisTools;
|
||||||
import com.yutou.qqbot.utlis.StringUtils;
|
import com.yutou.qqbot.utlis.StringUtils;
|
||||||
import net.mamoe.mirai.event.events.MessageEvent;
|
import net.mamoe.mirai.event.events.MessageEvent;
|
||||||
|
import net.mamoe.mirai.message.MessageReceipt;
|
||||||
import net.mamoe.mirai.message.data.At;
|
import net.mamoe.mirai.message.data.At;
|
||||||
import net.mamoe.mirai.message.data.MessageChainBuilder;
|
import net.mamoe.mirai.message.data.MessageChainBuilder;
|
||||||
|
import net.mamoe.mirai.message.data.QuoteReply;
|
||||||
import redis.clients.jedis.Jedis;
|
import redis.clients.jedis.Jedis;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -213,8 +215,13 @@ public class GetSeTu extends Model {
|
|||||||
@Override
|
@Override
|
||||||
public void onDownload(File file) {
|
public void onDownload(File file) {
|
||||||
super.onDownload(file);
|
super.onDownload(file);
|
||||||
String message = QQBotManager.getInstance().sendMessage(file, qq, event.getMessage(), builder.toString());
|
QQBotManager.getInstance().sendMessage(file, qq, event.getMessage(), "");
|
||||||
|
MessageChainBuilder chain = new MessageChainBuilder();
|
||||||
|
chain.append(new QuoteReply(event.getMessage()));
|
||||||
|
chain.append(builder.toString());
|
||||||
|
MessageReceipt<?> message=QQBotManager.getInstance().sendMessage(qq,chain);
|
||||||
Log.i(getModelName(),message);
|
Log.i(getModelName(),message);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user