public CommanderController( ICommanderService commander, EShopDbContext context ) { _commander = commander; _context = context; }
public PeskybirdBot(IConfiguration configuration, ILogger logger, DiscordSocketClient client, ICommanderService commanderService) { // await using var context = new PeskybirdContext(); _logger = logger; _client = client; _token = configuration["PESKY_TOKEN"]; if (_token == null) { throw new InvalidOperationException("Bot cannot be started without a token"); } _activator = configuration["PESKY_ACTIVATOR"] ?? "!"; logger.LogInformation($"activator: {_activator}"); _commanderService = commanderService; _client.MessageReceived += OnMessageReceived; _client.UserVoiceStateUpdated += OnVoiceServerStateUpdate; }
public CommandersController(ICommanderService commanderService) { _commanderService = commanderService; }