SmartIrc4net - the C# IRC library - The Code Project - C# Programming: "using System; using System.Collections; using Meebey.SmartIrc4net; using Meebey.SmartIrc4net.Delegates; public class Test { public static IrcClient irc = new IrcClient(); public static void OnQueryMessage(Data ircdata) { switch (ircdata.MessageEx[0]) { case 'join': irc.Join(ircdata.MessageEx[1]); break; case 'part': irc.Part(ircdata.MessageEx[1]); break; case 'say': irc.Message(SendType.Message, MessageEx[1], MessageEx[2]); break; } } public static void Main(string[] args) { irc.SendDelay = 200; irc.AutoRetry = true; irc.ChannelSyncing = true; irc.OnQueryMessage += new MessageEventHandler(OnQueryMessage); string[] serverlist; serverlist = new string[] {'irc.ircnet.net'}; int port = 6667; if(irc.Connect(serverlist, port) == true) { irc.Login('SmartIRC', 'Stupid Bot'); irc.Join('#smartirc'); irc.Message(SendType.Message, '#smartirc', 'test message'); irc.Message(SendType.Action, '#smartirc', ' thinks this is cool'); irc.Message(SendType.Notice, '#smartirc', 'SmartIrc4net rocks!'); } irc.Listen(); irc.Disconnect(); } else { System.Console.WriteLine('couldn't connect!'); } } }"
avoiding the hazards of code redundancy since 93
The perfect is the enemy of the good.
My Fave Links- A gentle introduction to SQL
- Inquirer 7
- Planet Source Code
- DevX
- Programmers Heaven
- Free VB Code
- VB Accelerator
- VB Helper
- VB City
- VBNet Visual Basic Resource Center
- Blackbelt VB
- C# Station
- C# on Linux
- C# Tutorial
- gizmag
- undextrois' programming anecdotes and code snippets
- My latest blog
- IRC - Quakenet Server, #tayotayolang
- Skype Me
- Yahoo Message Me
- Mail Me
- Yahoo Call Me
- Web-based typing speed test
Previous Posts
- gizmag Emerging Technology Magazine: "GO: Navizon’...
- I4U News - Oakley Thump MP3 Sunglasses Review: "Oa...
- Pentium M - Wikipedia, the free encyclopedia: "Ult...
- Pentium 4 - Wikipedia, the free encyclopedia: "The...
- AMD - Wikipedia, the free encyclopedia: "The AMD64...
- SQLzoo: Tutorial One: Using multiple results in...
- Google Groups : microsoft.public.sqlserver.server:...
- Intel vs AMD: Could it be the folks over at Inte...
- dual core vs dual cpu
- Stephane Frechette : set nocount {on|off}: "set no...
Saturday, December 24, 2005
0 Comments:
Post a Comment
<< Home