public StatisticsPusherModule(BotTerminator bot) : base(bot) { this.RunForeverCooldown = new TimeSpan(0, 1, 0); }
public CacheFreshenerModule(BotTerminator bot) : base(bot, null, bot.RedditInstance.GetListing <ModAction>($"/r/mod-{bot.SubredditName}/about/log?type=wikirevise", 100, 100)) { RunForeverCooldown = new TimeSpan(0, 3, 0); }
protected ListingBotModule(BotTerminator bot, String metricId, Listing <T> listing) : base(bot) { MetricId = metricId; Listing = listing; }
public InviteAcceptorModule(BotTerminator bot) : base(bot, bot.GlobalConfig.InviteAcceptorMetricId, bot.RedditInstance.User.GetUnreadMessages(-1)) { }
public CommentScannerModule(BotTerminator bot) : base(bot, null, bot.RedditInstance.GetListing <Comment>(BotTerminator.NewModCommentsUrl, 250, BotTerminator.PageLimit)) { RunForeverCooldown = new TimeSpan(0, 0, 0); }
public StatusPageStatusPusherModule(BotTerminator bot) : base(bot) { this.statusPageClient = new HttpClient(); this.statusPageClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("OAuth", bot.AuthenticationConfig.StatusPageApiKey); }
public ScannerModule(BotTerminator bot, String metricId, Listing <T> listing) : base(bot, metricId, listing) { }
public UpdateBanListModule(BotTerminator bot) : base(bot, bot.GlobalConfig.BanListMetricId, bot.RedditInstance.GetListing <Post>("/r/" + bot.SubredditName + "/new", -1, BotTerminator.PageLimit)) { RequireUnique = true; }