コード例 #1
0
 public TwitchBotApplication(Configuration appConfig, TwitchInfoService twitchInfo, SongRequestBlacklistService songRequestBlacklist,
                             FollowerService follower, BankService bank, FollowerSubscriberListener followerListener, ManualSongRequestService manualSongRequest, PartyUpService partyUp,
                             GameDirectoryService gameDirectory, QuoteService quote, BankHeist bankHeist, TwitchChatterListener twitchChatterListener, IrcClient irc,
                             BossFight bossFight, SongRequestSettingService songRequestSetting, InGameUsernameService ign, LibVLCSharpPlayer libVLCSharpPlayer)
 {
     _appConfig    = appConfig;
     _botConfig    = appConfig.GetSection("TwitchBotConfig") as TwitchBotConfigurationSection;
     _greetedUsers = new List <string>();
     _twitchInfo   = twitchInfo;
     _follower     = follower;
     _followerSubscriberListener = followerListener;
     _bank = bank;
     _songRequestBlacklist = songRequestBlacklist;
     _manualSongRequest    = manualSongRequest;
     _gameDirectory        = gameDirectory;
     _quote                 = quote;
     _bankHeist             = bankHeist;
     _twitchChatterListener = twitchChatterListener;
     _bossFight             = bossFight;
     _songRequestSetting    = songRequestSetting;
     _ign = ign;
     _libVLCSharpPlayer = libVLCSharpPlayer;
     _irc     = irc;
     _partyUp = partyUp;
 }
コード例 #2
0
 public CmdVip(IrcClient irc, TimeoutCmd timeout, TwitchBotConfigurationSection botConfig, System.Configuration.Configuration appConfig,
               BankService bank, TwitchInfoService twitchInfo, ManualSongRequestService manualSongRequest, QuoteService quote,
               PartyUpService partyUp, GameDirectoryService gameDirectory)
 {
     _irc               = irc;
     _timeout           = timeout;
     _botConfig         = botConfig;
     _appConfig         = appConfig;
     _bank              = bank;
     _twitchInfo        = twitchInfo;
     _manualSongRequest = manualSongRequest;
     _quote             = quote;
     _partyUp           = partyUp;
     _gameDirectory     = gameDirectory;
 }
コード例 #3
0
 public PartyUpFeature(IrcClient irc, TwitchBotConfigurationSection botConfig, TwitchInfoService twitchInfo,
                       GameDirectoryService gameDirectory, PartyUpService partyUp) : base(irc, botConfig)
 {
     _twitchInfo    = twitchInfo;
     _gameDirectory = gameDirectory;
     _partyUp       = partyUp;
     _rolePermissions.Add("!partyup", new CommandPermission {
         General = ChatterType.Viewer
     });
     _rolePermissions.Add("!partyuprequestlist", new CommandPermission {
         General = ChatterType.Viewer
     });
     _rolePermissions.Add("!partyuplist", new CommandPermission {
         General = ChatterType.Viewer
     });
     _rolePermissions.Add("!poppartyup", new CommandPermission {
         General = ChatterType.VIP
     });
     _rolePermissions.Add("!poppartyuprequest", new CommandPermission {
         General = ChatterType.VIP
     });
 }
コード例 #4
0
 public CommandSystem(IrcClient irc, TwitchBotConfigurationSection botConfig, Configuration appConfig, BankService bank,
                      SongRequestBlacklistService songRequestBlacklist, LibVLCSharpPlayer libVLCSharpPlayer, SongRequestSettingService songRequestSetting,
                      SpotifyWebClient spotify, TwitchInfoService twitchInfo, FollowerService follower, GameDirectoryService gameDirectory, InGameUsernameService ign,
                      ManualSongRequestService manualSongRequest, QuoteService quote, PartyUpService partyUp)
 {
     _bank                     = new BankFeature(irc, botConfig, bank);
     _followerFeature          = new FollowerFeature(irc, botConfig, twitchInfo, follower, appConfig);
     _generalFeature           = new GeneralFeature(irc, botConfig, twitchInfo, appConfig);
     _inGameNameFeature        = new InGameNameFeature(irc, botConfig, twitchInfo, gameDirectory, ign);
     _joinStreamerFeature      = new JoinStreamerFeature(irc, botConfig, twitchInfo, gameDirectory);
     _libVLCSharpPlayerFeature = new LibVLCSharpPlayerFeature(irc, botConfig, appConfig, libVLCSharpPlayer);
     _miniGameFeature          = new MinigameFeature(irc, botConfig, bank, follower, twitchInfo);
     _multiLinkUserFeature     = new MultiLinkUserFeature(irc, botConfig);
     _partyUpFeature           = new PartyUpFeature(irc, botConfig, twitchInfo, gameDirectory, partyUp);
     _quoteFeature             = new QuoteFeature(irc, botConfig, quote);
     _reminderFeature          = new RefreshFeature(irc, botConfig, twitchInfo, gameDirectory);
     _songRequestFeature       = new SongRequestFeature(irc, botConfig, appConfig, songRequestBlacklist, libVLCSharpPlayer, songRequestSetting, manualSongRequest, bank, spotify);
     _spotifyFeature           = new SpotifyFeature(irc, botConfig, spotify);
     _twitchChannelFeature     = new TwitchChannelFeature(irc, botConfig, gameDirectory);
     _twitter                  = new TwitterFeature(irc, botConfig, appConfig);
 }