コード例 #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
ファイル: ChatReminder.cs プロジェクト: dakamakat/TwitchBot-1
 public ChatReminder(IrcClient irc, int broadcasterId, string twitchBotApiLink, TwitchInfoService twitchInfo, GameDirectoryService gameDirectory)
 {
     _irc                      = irc;
     _broadcasterId            = broadcasterId;
     _twitchBotApiLink         = twitchBotApiLink;
     _twitchInfo               = twitchInfo;
     _gameDirectory            = gameDirectory;
     _lastSecCountdownReminder = -10;
     _refreshReminders         = false;
     _chatReminderThread       = new Thread(new ThreadStart(this.Run));
 }
コード例 #3
0
        public Overview(ManagedVersionsService versionService, GameDirectoryService gameDirService)
        {
            InitializeComponent();
            _versionService = versionService;
            _gameDirService = gameDirService;
            frmOverviewDetails.Navigate(new OverviewEmpty());

            _versions = _versionService.GetManagedVersions();
            _versions.CollectionChanged += ContentCollectionChanged;
            ShowVersions();
        }
コード例 #4
0
ファイル: CmdBrdCstr.cs プロジェクト: Faded/TwitchBot
 public CmdBrdCstr(IrcClient irc, TwitchBotConfigurationSection botConfig, int broadcasterId,
                   System.Configuration.Configuration appConfig, SongRequestBlacklistService songRequest, TwitchInfoService twitchInfo,
                   GameDirectoryService gameDirectory)
 {
     _irc           = irc;
     _botConfig     = botConfig;
     _broadcasterId = broadcasterId;
     _appConfig     = appConfig;
     _songRequest   = songRequest;
     _twitchInfo    = twitchInfo;
     _gameDirectory = gameDirectory;
 }
コード例 #5
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
     });
 }
コード例 #6
0
ファイル: CmdBrdCstr.cs プロジェクト: zkitX/TwitchBot
 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;
 }
コード例 #7
0
 public RefreshFeature(IrcClient irc, TwitchBotConfigurationSection botConfig, TwitchInfoService twitchInfo, GameDirectoryService gameDirectory)
     : base(irc, botConfig)
 {
     _twitchInfo    = twitchInfo;
     _gameDirectory = gameDirectory;
     _rolePermissions.Add("!refreshreminders", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!refreshbossfight", new CommandPermission {
         General = ChatterType.Broadcaster
     });
     _rolePermissions.Add("!refreshcommands", new CommandPermission {
         General = ChatterType.Broadcaster
     });
 }
コード例 #8
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;
 }
コード例 #9
0
 public TwitchChannelFeature(IrcClient irc, TwitchBotConfigurationSection botConfig, GameDirectoryService gameDirectory) : base(irc, botConfig)
 {
     _gameDirectory = gameDirectory;
     _rolePermissions.Add("!game", new CommandPermission {
         General = ChatterType.Viewer
     });
     _rolePermissions.Add("!title", new CommandPermission {
         General = ChatterType.Viewer
     });
     _rolePermissions.Add("!updategame", new CommandPermission {
         General = ChatterType.Moderator
     });
     _rolePermissions.Add("!updatetitle", new CommandPermission {
         General = ChatterType.Moderator
     });
 }
コード例 #10
0
 public JoinStreamerFeature(IrcClient irc, TwitchBotConfigurationSection botConfig, TwitchInfoService twitchInfo,
                            GameDirectoryService gameDirectory) : base(irc, botConfig)
 {
     _twitchInfo    = twitchInfo;
     _gameDirectory = gameDirectory;
     _rolePermissions.Add("!resetjoin", new CommandPermission {
         General = ChatterType.Moderator
     });
     _rolePermissions.Add("!listjoin", new CommandPermission {
         General = ChatterType.Viewer
     });
     _rolePermissions.Add("!invite", new CommandPermission {
         General = ChatterType.Viewer
     });
     _rolePermissions.Add("!popjoin", new CommandPermission {
         General = ChatterType.VIP
     });
 }
コード例 #11
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
     });
 }
コード例 #12
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);
 }