Esempio n. 1
0
        private async Task Startup()
        {
            DBHelper db = new DBHelper();
            var      PM = new PlayerModule();
            var      RS = new RaidService();

            PM.UpdateAll();
            var list = db.GetAllSubscribedChannels();
            var ss   = new SubscribedChannelService();

            if (list.Count != 0)
            {
                list = list.Where(x => x.Type == SubscribeType.Raid).ToList();
                list.ForEach(async o => await ss.Attach(o));
            }
            ss.ObserveRaids();
            RS.ObserveThread();
            var player     = db.GetAll <Player>().Where(o => o.DiscordName == "Nillertron#5220").FirstOrDefault();
            var msgService = new LogMessageService();
            await msgService.Attach(player);

            var guildService = new GuildService();
        }