public ServerConfigService(IServiceProvider serviceProvider, DiscordSocketClient socketClient, LoggerService logger) { this.serviceProvider = serviceProvider; this.socketClient = socketClient; this.logger = logger; logger.Log(new LogMessage(LogSeverity.Info, "ServerConfigService", "Service up and running!")); serverConfigDictionary = new Dictionary <ulong, ServerConfig>(); socketClient.GuildAvailable += OnGuildAvailable; socketClient.JoinedGuild += OnGuildJoined; }
public CommandHandler(IServiceProvider services, CommandService commands, DiscordSocketClient client, LoggerService logger) { commandService = commands; this.services = services; this.client = client; this.logger = logger; }