public FlipCoinCommands(IDataCache data, ICurrencyService cs, DbService db, GamblingConfigService gss) : base(gss) { _images = data.LocalImages; _cs = cs; _db = db; }
public PlantPickService(DbService db, CommandHandler cmd, IBotStrings strings, IDataCache cache, FontProvider fonts, ICurrencyService cs, CommandHandler cmdHandler, DiscordSocketClient client, GamblingConfigService gss) { _db = db; _strings = strings; _images = cache.LocalImages; _fonts = fonts; _cs = cs; _cmdHandler = cmdHandler; _rng = new NadekoRandom(); _client = client; _gss = gss; cmd.OnMessageNoTrigger += PotentialFlowerGeneration; using (var uow = db.GetDbContext()) { var guildIds = client.Guilds.Select(x => x.Id).ToList(); var configs = uow._context.Set <GuildConfig>() .AsQueryable() .Include(x => x.GenerateCurrencyChannelIds) .Where(x => guildIds.Contains(x.GuildId)) .ToList(); _generationChannels = new ConcurrentHashSet <ulong>(configs .SelectMany(c => c.GenerateCurrencyChannelIds.Select(obj => obj.ChannelId))); } }
public AnimalRacingCommands(ICurrencyService cs, DiscordSocketClient client, GamblingConfigService gamblingConf, GamesConfigService gamesConf) : base(gamblingConf) { _cs = cs; _client = client; _gamesConf = gamesConf; }
public WaifuService(DbService db, ICurrencyService cs, IDataCache cache, GamblingConfigService gss) { _db = db; _cs = cs; _cache = cache; _gss = gss; }
public Gambling(DbService db, ICurrencyService currency, IDataCache cache, DiscordSocketClient client, DownloadTracker tracker, GamblingConfigService configService) : base(configService) { _db = db; _cs = currency; _cache = cache; _client = client; _enUsCulture = new CultureInfo("en-US", false).NumberFormat; _enUsCulture.NumberDecimalDigits = 0; _enUsCulture.NumberGroupSeparator = " "; _tracker = tracker; _configService = configService; }
public CurrencyEventsService(DiscordSocketClient client, IBotCredentials creds, ICurrencyService cs, IHttpClientFactory http, GamblingConfigService configService) { _client = client; _cs = cs; _creds = creds; _http = http; _configService = configService; if (_client.ShardId == 0) { Task t = BotlistUpvoteLoop(); } }
public PatreonRewardsService(IBotCredentials creds, DbService db, ICurrencyService currency, IHttpClientFactory factory, DiscordSocketClient client, GamblingConfigService gamblingConfigService) { _creds = creds; _db = db; _currency = currency; _gamblingConfigService = gamblingConfigService; _httpFactory = factory; _client = client; if (client.ShardId == 0) { _updater = new Timer(async _ => await RefreshPledges().ConfigureAwait(false), null, TimeSpan.Zero, Interval); } }
public SlotCommands(IDataCache data, ICurrencyService cs, GamblingConfigService gamb) : base(gamb) { _images = data.LocalImages; _cs = cs; }
public CurrencyService(DbService db, DiscordSocketClient c, GamblingConfigService gss) { _db = db; _gss = gss; _bot = c.CurrentUser; }
public WaifuClaimCommands(GamblingConfigService gamblingConfService) : base(gamblingConfService) { }
public PlantPickCommands(LogCommandService logService, GamblingConfigService gss) : base(gss) { this.logService = logService; }
public BlackJackCommands(ICurrencyService cs, DbService db, GamblingConfigService gamblingConf) : base(gamblingConf) { _cs = cs; _db = db; }
public CurrencyEventsCommands(GamblingConfigService gamblingConf) : base(gamblingConf) { }
public WheelOfFortuneCommands(ICurrencyService cs, DbService db, GamblingConfigService gamblingConfService) : base(gamblingConfService) { _cs = cs; _db = db; }
public Connect4Commands(DiscordSocketClient client, ICurrencyService cs, GamblingConfigService gamb) : base(gamb) { _client = client; _cs = cs; }
public Xp(DownloadTracker tracker, GamblingConfigService gss) { _tracker = tracker; _gss = gss; }
public GamblingConfigMigrator(DbService dbService, GamblingConfigService gss) { _db = dbService; _gss = gss; }
public CurrencyRaffleCommands(GamblingConfigService gamblingConfService) : base(gamblingConfService) { }
protected GamblingModule(GamblingConfigService gambService) { _lazyConfig = new Lazy <GamblingConfig>(() => gambService.Data); }
protected GamblingSubmodule(GamblingConfigService gamblingConfService) : base(gamblingConfService) { }
public ShopCommands(DbService db, ICurrencyService cs, GamblingConfigService gamblingConf) : base(gamblingConf) { _db = db; _cs = cs; }