public OsuCommands(ILogger<OsuCommands> logger, DiscordClient client, OsuUtils utils, BanchoApi api, GatariApi gapi, OsuEmoji emoji, WAVMembersProvider wavMembers) { ModuleName = "Osu commands"; this.logger = logger; this.wavScoresChannel = client.GetChannelAsync(829466881353711647).Result; this.webClient = new WebClient(); this.wavMembers = wavMembers; this.guild = client.GetGuildAsync(WAV_UID).Result; this.utils = utils; this.api = api; this.gapi = gapi; this.emoji = emoji; logger.LogInformation("OsuCommands loaded"); client.MessageCreated += Client_MessageCreated; }
public RecognizerService(DiscordClient client, Settings settings, ILogger <RecognizerService> logger, OsuEmoji emoji, OsuUtils utils, ShedulerService sheduler) { this.client = client; this.logger = logger; this.utils = utils; this.sheduler = sheduler; this.emoji = emoji; recognizer = new Recognizer(); webClient = new WebClient(); ignoreList = new Dictionary <int, DateTime>(); api = new BanchoApi(settings.ClientId, settings.Secret); gapi = new GatariApi(); queue = new BackgroundQueue(); logger.LogInformation("Osu service started"); ConfigureFilesInterceptor(client); }
public OsuSlashCommands(BanchoApi api, GatariApi gapi, OsuUtils utils, ILogger <OsuSlashCommands> logger) { this.api = api; this.gapi = gapi; this.utils = utils; this.logger = logger; logger.LogInformation("OsuSlashCommands loaded"); }