public DelayedSend(ircBot bot, String destiny, String toSend, int duration) { _bot = bot; _destiny = destiny; _toSend = toSend; _duration = duration; }
public BatchSender(ircBot bot, string destiny, List<string> ls, bool unique, bool countLines) { _bot = bot; _destiny = destiny; _textList = ls; _onlyUnique = unique; _countLines = countLines; }
public OutQueue(ircBot bot) { _bot = bot; Queue = new ConcurrentQueue<string>(); BatchQueue = new ConcurrentQueue<string>(); _timerNormal = new Timer(100); _timerNormal.Elapsed += _timerNormal_Elapsed; _timerBatch = new Timer(1000); _timerBatch.Elapsed += _timerBatch_Elapsed; _timerNormal.Enabled = true; _timerBatch.Enabled = true; }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Console.OutputEncoding = Encoding.UTF8; Console.Title = "csharp-ircbot: irc.rizon.net"; Config config = new Config("config.ini"); Random random = new Random((int)DateTime.Now.Ticks & 0x0000FFFF); ircBot rizon = new ircBot(config, random); Thread rizonTypper = new Thread(rizon.typper); Thread rizonBot = new Thread(rizon.ircWork); rizonBot.Start(); rizonTypper.Start(); }
public Parser(ircBot bot) { _bot = bot; _np = new NowPlaying(); _pics = new Pictures(_bot); _ctcpVersion = new CTCPVersion(bot); _blacklist = new List<string>(); _blacklist.Add("#news"); triggers = new Hashtable(); pmResponses = new Hashtable(); serverMsg = new Hashtable(); noticeResponses = new Hashtable(); NickMatcher = new Regex("[^:! ]+"); if (_bot.config.HardCodeTriggers) { LoadHardCodedTriggers(); LoadPMResponses(); LoadNoticeResponses(); } LoadServerMessages(); }
public XDCC(ircBot bot) { _bot = bot; _announce = new List<String>(); _announce.Add("#tabachan"); _gfile = @"D:\programs\bin\data\XDCC\groups.txt"; _afile = @"D:\programs\bin\data\XDCC\anime.txt"; _gnames = new List<String>(); LoadList(_gnames, _gfile); _snames = new List<String>(); LoadList(_snames, _afile); _resnames = new List<String>(); _resnames.Add("720p"); _resnames.Add("1080p"); _resnames.Add("480p"); _audionames = new List<String>(); _audionames.Add("AAC"); _audionames.Add("FLAC"); _crcchars = new List<Char>(); prepareCRC(); _separator = new List<Char>(); _separator.Add(' '); _separator.Add('_'); _releases = new List<ReleaseInfo>(); for (int i = 0; i < 143; i++) { _releases.Add(new ReleaseInfo(i + 1, rndString(_gnames), rndString(_snames), _bot.random.Next(1, 4), rndString(_resnames), rndString(_audionames), rndChar(_separator), generateCRC())); } //_xdccTimer = new XDCCTimer(_random, this); }
public NoticeBatchSender(ircBot bot, string destiny, List<string> ls) { _bot = bot; _destiny = destiny; _textList = ls; }
public DelayedSend(ircBot bot, int duration, String cmd) { _bot = bot; _duration = duration; _cmd = cmd; }
public NickList(ircBot bot) { _bot = bot; nickList = new HashSet<string>(); _secs = 0; }