public WikiSearcher(DiscordSocketClient discord, TownDatabase database) { this.database = database; this.discord = discord; discord.MessageReceived += Search; }
public CrossAlerter(DiscordSocketClient discord, TownDatabase database) { this.discord = discord; this.database = database; discord.MessageReceived += Process; }
public PointCounter(DiscordSocketClient discord, TownDatabase database) { this.database = database; this.discord = discord; discord.MessageReceived += Handle; }
public ChannelFilters(DiscordSocketClient discord, TownDatabase database, InteractiveService interactive) { this.database = database; this.discord = discord; this.interactive = interactive; discord.MessageReceived += Handle; }
public NewcomerService(DiscordSocketClient discord, TownDatabase database, IServiceProvider provider) { this.discord = discord; this.provider = provider; this.database = database; discord.UserJoined += UserJoined; discord.UserLeft += AlertTeam; }
public AltaAPI(TownDatabase database, TimerService timer) { this.database = database; this.timer = timer; StartWithEndpoint(HighLevelApiClientFactory.ProductionEndpoint); EnsureLoggedIn().Wait(); //No need to update username/identifier on interval. Needs to be changed to update supporter status, only for those who it's passed expiry for //this.timer.OnClockInterval += _timer_OnClockInterval; }
public AccountService(DiscordSocketClient client, TownDatabase database, AltaAPI altaApi, TimerService timer) { Client = client; Database = database; AltaApi = altaApi; timer.OnClockInterval += UpdateAll; //Console.WriteLine(database.Users.Count(item => item.AltaInfo != null)); //Migrate(); }
public CommandHandlingService(IConfiguration config, IServiceProvider provider, TownDatabase database, DiscordSocketClient discord, CommandService commands, CommandCacheService cache, InteractiveService interactive) { this.discord = discord; this.commands = commands; this.provider = provider; this.config = config; this.interactive = interactive; this.cache = cache; this.database = database; this.discord.MessageReceived += MessageReceived; this.discord.ReactionAdded += OnReactAdded; this.discord.MessageUpdated += OnMessageUpdated; }