コード例 #1
0
ファイル: TryToGetOp.cs プロジェクト: groma84/IrcBots
 public TryToGetOp(TimeSpan sleepTimeBetweenChecks, IMessagingClient messageClient, IConfiguration configuration, ILogging logging)
 {
     _sleepTimeBetweenChecks = sleepTimeBetweenChecks;
     _messageClient = messageClient;
     _clientConfiguration = configuration.LoadClientConfiguration();
     _logging = logging;
 }
コード例 #2
0
ファイル: IrcMessagingClient.cs プロジェクト: groma84/IrcBots
        public IrcMessagingClient(IConfiguration configuration)
        {
            _ircClient = new IrcClient();

            // UTF-8 test
            _ircClient.Encoding = System.Text.Encoding.UTF8;

            // wait time between messages, we can set this lower on own irc servers
            _ircClient.SendDelay = 200;

            // we use channel sync, means we can use irc.GetChannel() and so on
            _ircClient.ActiveChannelSyncing = true;

            _clientConfiguration = configuration.LoadClientConfiguration();
        }