コード例 #1
0
ファイル: WorldMapScreen.cs プロジェクト: KVN3/TribalWars2BOT
 public WorldMapScreen(IBotConfig config, ILogger logger, IBattleReportScreen reportCommands)
     : base(config, logger)
 {
     this.reportCommands = reportCommands;
 }
コード例 #2
0
 public DiscordPayloadFactory(IBotConfig botConfig, IMappingService mapper)
 {
     _botConfig = botConfig;
     _mapper    = mapper;
 }
コード例 #3
0
        public FormattingService(IFileReader fileReader, IBotConfig botConfig)
        {
            var json = fileReader.ReadFile(botConfig.RegionsPath);

            _timezones = JsonConvert.DeserializeObject <Dictionary <string, int> >(json);
        }
コード例 #4
0
 public AzureStateManager(IBotConfig config, ISerializer serializer)
 {
     this.config     = config;
     this.serializer = serializer;
 }
コード例 #5
0
 public LoggingModule(IDiscordModuleService discordModuleService, IBotConfig botConfig, IEmbedService embedService,
                      IEmbedPayloadFactory embedPayloadFactory, IResources resources)
     : base(botConfig, discordModuleService, embedService, embedPayloadFactory, resources)
 {
 }
コード例 #6
0
 public ListableBotModuleBase(IBotConfig botConfig, IDiscordModuleService discordModuleService, IEmbedService embedService,
                              IEmbedPayloadFactory embedPayloadFactory, IResources resources)
     : base(botConfig, discordModuleService, embedService, embedPayloadFactory, resources)
 {
 }
コード例 #7
0
 public ColorConverter(IBotConfig botConfig)
 {
     _botConfig = botConfig;
 }
コード例 #8
0
 public ParamModule(IParamService paramService, IDiscordModuleService discordModuleService, IBotConfig botConfig,
                    IEmbedService embedService, IEmbedPayloadFactory embedPayloadFactory, IResources resources)
     : base(botConfig, discordModuleService, embedService, embedPayloadFactory, resources)
 {
     _paramService = paramService;
 }
コード例 #9
0
 public AwsUserProfileService(IBotConfig config)
 {
     this.config = config;
     this.client = new AmazonDynamoDBClient();
 }
コード例 #10
0
 public VillageInfoScreen(IBotConfig config, ILogger logger)
     : base(config, logger)
 {
 }
コード例 #11
0
 public CustomCommandHandler(IAPIService apiService, IBotConfig botConfig, IDiscordPayloadFactory discordPayloadFactory)
 {
     _apiService            = apiService;
     _botConfig             = botConfig;
     _discordPayloadFactory = discordPayloadFactory;
 }
コード例 #12
0
 public EventModule(IDiscordModuleService discordModuleService, IBotConfig botConfig, IEmbedService embedService,
                    IEmbedPayloadFactory embedPayloadFactory, IResources resources, IFormattingService formattingService)
     : base(botConfig, discordModuleService, embedService, embedPayloadFactory, resources)
 {
     _formattingService = formattingService;
 }
コード例 #13
0
 public BattleReportScreen(IBotConfig config, ILogger logger)
     : base(config, logger)
 {
 }
コード例 #14
0
 public BotRuntime(IIrcEventHandler ircEventHandler, IBotConfig botConfig)
 {
     _ircEventHandler = ircEventHandler ?? throw new ArgumentNullException(nameof(ircEventHandler));
     _botConfig       = botConfig ?? throw new ArgumentNullException(nameof(botConfig));
 }
コード例 #15
0
 public AwsStateManager(IBotConfig config, ISerializer serializer)
 {
     this.config     = config;
     this.serializer = serializer;
     this.client     = new AmazonDynamoDBClient();
 }
コード例 #16
0
 public EmbedPayloadFactory(IBotConfig botConfig)
 {
     _botConfig = botConfig;
 }
コード例 #17
0
 public TribalWarsConnectionService(IBotConfig config)
 {
     this.config = config;
     this.random = new Random();
 }
コード例 #18
0
 public SearchWorldMapScreen(IBotConfig config, ILogger logger)
     : base(config, logger)
 {
 }
コード例 #19
0
 public PresetScreen(IBotConfig config, ILogger logger)
     : base(config, logger)
 {
 }
コード例 #20
0
 public IrcEventHandler(ILifetimeScope container, IBotConfig config)
 {
     _container = container ?? throw new ArgumentNullException(nameof(container));
     _config    = config ?? throw new ArgumentNullException(nameof(config));
 }
コード例 #21
0
 public MessangerDispatcher(ILogger logger, IBotConfig config, ISerializer serializer)
 {
     this.logger     = logger;
     this.config     = config;
     this.serializer = serializer;
 }
コード例 #22
0
 public TopGgController(IBotConfig cfg, KaguyaDb db, UpvoteNotifier uvNotifier)
 {
     _cfg        = cfg;
     _db         = db;
     _uvNotifier = uvNotifier;
 }
コード例 #23
0
 public AzureMessageQueue(IBotConfig config)
 {
     this.config = config;
 }
コード例 #24
0
 public ChannelModule(IDiscordModuleService discordModuleService, IChannelService channelService, IBotConfig botConfig,
                      IEmbedService embedService, IEmbedPayloadFactory embedPayloadFactory, IResources resources)
     : base(botConfig, discordModuleService, embedService, embedPayloadFactory, resources)
 {
     _channelService = channelService;
 }
コード例 #25
0
 public MessangerUserManager(IBotConfig botConfig, ISerializer serializer, IUserProfileService userProfileService)
 {
     this.config             = botConfig;
     this.serializer         = serializer;
     this.userProfileService = userProfileService;
 }
コード例 #26
0
 public TopBarScreen(IBotConfig config, ILogger logger)
     : base(config, logger)
 {
 }
コード例 #27
0
 public HelpModule(IHelpService helpService, IBotConfig botConfig, IEmbedService embedService,
                   IEmbedPayloadFactory embedPayloadFactory, IResources resources)
     : base(botConfig, embedService, embedPayloadFactory, resources)
 {
     _helpService = helpService;
 }
コード例 #28
0
 public AwsMessageQueue(IBotConfig config)
 {
     this.config = config;
     this.client = new AmazonSimpleNotificationServiceClient();
 }