public GuildInfoProvider(IUserStore userStore, IDiscordAccess discordAccess, IGameRoleProvider gameRoleProvider) { _userStore = userStore; _discordAccess = discordAccess; _gameRoleProvider = gameRoleProvider; }
public ConfigGameModule(IGameRoleProvider gameRoleProvider, IDiscordAccess discordAccess, IUserStore userStore, ILogger <ConfigGameModule> logger) { _gameRoleProvider = gameRoleProvider; _discordAccess = discordAccess; _userStore = userStore; _logger = logger; }
public ImageProvider(IGameRoleProvider gameRoleProvider, IWebAccess webAccess, IDiscordAccess discordAccess, IDynamicConfiguration dynamicConfiguration) { _gameRoleProvider = gameRoleProvider; _webAccess = webAccess; _discordAccess = discordAccess; _dynamicConfiguration = dynamicConfiguration; }
public DiscordUserEventHandler(IUserStore userStore, IPrivacyProvider privacyProvider, INonMemberRoleProvider nonMemberRoleProvider, IGameRoleProvider gameRoleProvider, IDatabaseAccess databaseAccess, IDynamicConfiguration dynamicConfiguration) { _userStore = userStore; _privacyProvider = privacyProvider; _nonMemberRoleProvider = nonMemberRoleProvider; _gameRoleProvider = gameRoleProvider; _databaseAccess = databaseAccess; _dynamicConfiguration = dynamicConfiguration; }
public StaticMessageProvider(IMessageProvider messageProvider, IGameRoleProvider gameRoleProvider, IBotInformationProvider botInformationProvider, ILogger <StaticMessageProvider> logger, IDynamicConfiguration dynamicConfiguration) { _channelSemaphores = new Dictionary <DiscordChannelId, SemaphoreSlim>(); _messageProvider = messageProvider; _gameRoleProvider = gameRoleProvider; _logger = logger; _dynamicConfiguration = dynamicConfiguration; #if DEBUG _provideStaticMessages = botInformationProvider.GetEnvironmentName() == Constants.RuntimeEnvironment.Production; #else // Don't change this statement, or the bot might not behave the way it should in the production environment. _provideStaticMessages = botInformationProvider.GetEnvironmentName() == Constants.RuntimeEnvironment.Production; #endif if (_provideStaticMessages) { _gameRoleProvider.GameChanged += GameRoleProvider_GameChanged; } }
public NonMemberRoleProvider(IUserStore userStore, IGameRoleProvider gameRoleProvider) { _userStore = userStore; _gameRoleProvider = gameRoleProvider; }