Exemplo n.º 1
0
 public Music(DiscordSocketClient client,
              IBotCredentials creds,
              IGoogleApiService google,
              DbService db,
              LogCommandService logService)
 {
     _client     = client;
     _creds      = creds;
     _google     = google;
     _db         = db;
     _logService = logService;
 }
Exemplo n.º 2
0
 public static IMessage DeleteAfter(this IUserMessage msg, int seconds, LogCommandService logService = null)
 {
     Task.Run(async() =>
     {
         await Task.Delay(seconds * 1000).ConfigureAwait(false);
         if (logService != null)
         {
             logService.AddDeleteIgnore(msg.Id);
         }
         try { await msg.DeleteAsync().ConfigureAwait(false); }
         catch { }
     });
     return(msg);
 }
Exemplo n.º 3
0
 public Music(LogCommandService _logService)
 {
     this._logService = _logService;
 }
 public PlantPickCommands(LogCommandService logService, GamblingConfigService gss) : base(gss)
 {
     this.logService = logService;
 }
Exemplo n.º 5
0
 public PlantPickCommands(LogCommandService logService)
 {
     this.logService = logService;
 }