void FunBotsSetup(Client client) { var timer = new Timer(60 * 60 * 1000 / 2); timer.Elapsed += new ElapsedEventHandler(delegate(object sender, ElapsedEventArgs e) { client.Private("lolikins", "!stuff"); }); client.Quitting += new EventHandler(delegate(object sender, EventArgs e) { if (timer.Enabled) timer.Stop(); }); timer.Start(); }
void pasteMessage(Client client, string nick, string id, string info) { if (!string.IsNullOrEmpty(info)) info = " - " + info; client.Private(Channel, string.Format("{0} pasted {1}{2}", new string[] { nick, id, info })); }