package com.yutou.nas;

import com.yutou.nas.Datas.AppData;
import com.yutou.nas.utils.DmhyRssDownloadManager;
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(DmhyRssDownloadManager.class)
@SpringBootApplication
public class NasApplication {
    public static final String version = "1.2.17.2";

    public static void main(String[] args) {
        SpringApplication.run(NasApplication.class, args);
        AppData.defaultMusicPath = (String) ConfigTools.load(ConfigTools.CONFIG, "musicDir");
        RedisTools.initRedisPoolSub();
        QQBotManager.getInstance().sendMessage("NasManager已上线:"+version);
    }

}
