QQ机器人关闭日志输出

This commit is contained in:
yutou 2020-10-27 18:04:59 +08:00
parent 1b21930013
commit ab68270749
3 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@
</parent> </parent>
<groupId>com.yutou</groupId> <groupId>com.yutou</groupId>
<artifactId>tools</artifactId> <artifactId>tools</artifactId>
<version>1.0.10</version> <version>1.0.10.1</version>
<name>tools</name> <name>tools</name>
<description>Demo project for Spring Boot</description> <description>Demo project for Spring Boot</description>

View File

@ -15,7 +15,7 @@ import java.io.IOException;
public class ToolsApplication { public class ToolsApplication {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("当前版本号:1.0.10"); System.out.println("当前版本号:1.0.10.1");
SpringApplication.run(ToolsApplication.class, args); SpringApplication.run(ToolsApplication.class, args);
RedisTools.initRedisPoolSub(); RedisTools.initRedisPoolSub();
if (APIFilter.isDebug) { if (APIFilter.isDebug) {

View File

@ -47,6 +47,8 @@ public class QQBotManager {
bot = BotFactoryJvm.newBot(qq, password, new BotConfiguration() { bot = BotFactoryJvm.newBot(qq, password, new BotConfiguration() {
{ {
fileBasedDeviceInfo("qq_bot_devices_info.json"); fileBasedDeviceInfo("qq_bot_devices_info.json");
noBotLog();
noNetworkLog();
} }
}); });
Events.registerEvents(bot, new MessageListener()); Events.registerEvents(bot, new MessageListener());