Exemple #1
0
 public TryToGetOp(TimeSpan sleepTimeBetweenChecks, IMessagingClient messageClient, IConfiguration configuration, ILogging logging)
 {
     _sleepTimeBetweenChecks = sleepTimeBetweenChecks;
     _messageClient = messageClient;
     _clientConfiguration = configuration.LoadClientConfiguration();
     _logging = logging;
 }
        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();
        }