package com.yutou.nas;

import com.yutou.nas.Datas.AppData;
import com.yutou.nas.utils.BTDownloadManager;
import com.yutou.nas.utils.ConfigTools;
import com.yutou.nas.utils.QQBotManager;
import com.yutou.nas.utils.RedisTools;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

@Import(BTDownloadManager.class)
@SpringBootApplication
public class NasApplication {
    public static final String version="1.1.0";
    public static void main(String[] args) {
        SpringApplication.run(NasApplication.class, args);
        AppData.defaultMusicPath = (String) ConfigTools.load(ConfigTools.CONFIG, "musicDir");
        RedisTools.initRedisPoolSub();
        QQBotManager.getInstance();
    }

}
