Exemplo n.º 1
0
        public async Task GetTopComments(string group, int top)
        {
            var res = await GroupFeeder.GetTopCommentsFromLastPost(group, top);

            foreach (var comment in res)
            {
                try
                {
                    await ReplyAsync(comment);
                }
                catch (Exception e)
                {
                    Logger.Warn("Some patrick post too long comment, continuing...");
                }
            }
        }
Exemplo n.º 2
0
        private Task AddInfiniteTasks()
        {
            NetUtills.Init(_config).Wait();
            PongCommandHandler.Init(_config);

            AnimeFeeder.Init(_client, _config);
            StreamerFeeder.Init(_client, _config);
            GroupFeeder.Init(_client, _config);
            ConsolesPriceFeeder.Init(_client);

            Task.Run(GroupFeeder.RunGroupFeeder);
            Task.Run(StreamerFeeder.RunStreamerFeeder);
            Task.Run(AnimeFeeder.RuAnimeFeeder);
            Task.Run(ConsolesPriceFeeder.RunFeeder);

            return(Task.CompletedTask);
        }