改成onebot-11通用接口 #9
@ -2,13 +2,15 @@ package com.yutou.qqbot;
|
||||
|
||||
import com.yutou.napcat.http.NapCatApi;
|
||||
import com.yutou.okhttp.HttpLoggingInterceptor;
|
||||
import com.yutou.qqbot.utlis.ConfigTools;
|
||||
import com.yutou.qqbot.utlis.RedisTools;
|
||||
import lombok.val;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class QQBotApplication {
|
||||
public static final String version = "QQBot v.1.6.2";
|
||||
public static final String version = "QQBot v.1.7";
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("version = " + version);
|
||||
@ -16,6 +18,8 @@ public class QQBotApplication {
|
||||
NapCatApi.setLog(true);
|
||||
RedisTools.initRedisPoolSub();
|
||||
QQBotManager.getInstance();
|
||||
val log = ConfigTools.load(ConfigTools.CONFIG, "service.log", Boolean.class);
|
||||
NapCatApi.setLog(log);
|
||||
//1
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@ public class Log {
|
||||
}
|
||||
|
||||
public static void i(Object log) {
|
||||
if (ConfigTools.load(ConfigTools.CONFIG, "logout", boolean.class, false)) {
|
||||
if (ConfigTools.load(ConfigTools.CONFIG, "service.log", boolean.class, false)) {
|
||||
System.out.printf("[%s]%s%n",
|
||||
AppTools.getToDayNowTimeToString(),
|
||||
log
|
||||
|
Loading…
Reference in New Issue
Block a user