Exemple #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;
 }
Exemple #2
0
 public InGameNameFeature(IrcClient irc, TwitchBotConfigurationSection botConfig, TwitchInfoService twitchInfo,
                          GameDirectoryService gameDirectory, InGameUsernameService ign) : base(irc, botConfig)
 {
     _twitchInfo    = twitchInfo;
     _gameDirectory = gameDirectory;
     _ign           = ign;
     _rolePermissions.Add("!setgameign", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!setgameid", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!setgamefc", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!setgenericign", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!setgenericid", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!setgenericfc", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!deleteign", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!deleteid", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!deletefc", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!ign", new CommandPermission {
         General = ChatterType.Viewer
     });                                                                                   // Display the broadcaster's in-game (user) name based on what they're streaming
     _rolePermissions.Add("!fc", new CommandPermission {
         General = ChatterType.Viewer
     });
     _rolePermissions.Add("!gt", new CommandPermission {
         General = ChatterType.Viewer
     });
     _rolePermissions.Add("!allign", new CommandPermission {
         General = ChatterType.Viewer
     });                                                                                      // Display all of the broadcaster's in-game (user) names
     _rolePermissions.Add("!allfc", new CommandPermission {
         General = ChatterType.Viewer
     });
     _rolePermissions.Add("!allgt", new CommandPermission {
         General = ChatterType.Viewer
     });
 }
Exemple #3
0
 public CmdBrdCstr(IrcClient irc, TwitchBotConfigurationSection botConfig, System.Configuration.Configuration appConfig,
                   SongRequestBlacklistService songRequest, TwitchInfoService twitchInfo, GameDirectoryService gameDirectory,
                   SongRequestSettingService songRequestSetting, InGameUsernameService ign, LibVLCSharpPlayer libVLCSharpPlayer)
 {
     _irc                = irc;
     _botConfig          = botConfig;
     _appConfig          = appConfig;
     _songRequest        = songRequest;
     _twitchInfo         = twitchInfo;
     _gameDirectory      = gameDirectory;
     _songRequestSetting = songRequestSetting;
     _ign                = ign;
     _libVLCSharpPlayer  = libVLCSharpPlayer;
 }
 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);
 }