Library tutorials & articles
A Console IRC Bot
- Introduction
- Establishing the Connection
- Responding to Commands
Introduction
I'm planning to write some articles based on questions I get from fellow students. The first one is how to get on IRC with C#? . So, here it is, the first article of (hopefully) many.
Let's start by telling what IRC is. This is best done by reading the Internet Relay Chat Protocol RFC. You can find anything you want about the IRC protocol in there.
Getting on IRC is as simple as:
- Establishing a connection.
- Logging in.
- Maintaining a connection and reacting to commands.
As this is an article on how to establish an IRC connection and work with the commands, I'm not going to spent any time on UI. Therefore this will be a simple Console Application ( cIRC ).
We'll make a seperate class for the IRC functions so we could re-use it later when we want to add a UI.
using System;
using System.Net;
using System.Net.Sockets;
using System.IO;
namespace System.Net {
public class IRC {
} /* IRC */
} /* System.Net */
Related articles
Related discussion
-
Buy cheap Xanax overnight. Cheap Xanax. Overnight delivery of Xanax in US no prescription needed. Cheapest Xanax.
by asleymar (0 replies)
-
Buy Soma online without a prescription. Soma drug no prescription. How to get Soma prescription. Soma cod accepted.
by asleymar (0 replies)
-
Cheap online order Fioricet. Cheap discount Fioricet. Offshore Fioricet online. How to buy Fioricet online without a prescription.
by asleymar (0 replies)
-
Buy Ambien no visa without prescription. Not expensive Ambien prescriptions. Ambien no rx. Cod delivery Ambien.
by asleymar (0 replies)
-
Tramadol without doctor rx. Buy Tramadol over the counter cod overnight. Cheap Tramadol cod delivery. Buy Tramadol from mexico online.
by asleymar (0 replies)
Related podcasts
-
Object-Oriented Programming in Ruby
In this episode, I talk with Scott Bellware about object-oriented programming in Ruby, and Ruby's object model. This is taken from a private conversation, and the audio quality suffers at times. Much thanks to Scott for allowing this to be released.This episode of the Alt.NET Podcast is bro...
i have the same error as this guy, i know this was LONG ago but i cannot figure out how to get past this !
can someone please contact me
Email: vincecarter15x15@aol.com
AIM : skatecrashrepeat
Alternative Email: Punk123@myway.com
PLEASE I NEED THIS DESPERATELY
That is not a C# error.. It's actually an IRC error, which means you connected to the server. You need to do a few commands so that you can login/etc.
Example:
USER Veeresh Veeresh :Veeresh Veeresh\r\n
NICK Veeresh\r\n
JOIN #quakenet\r\n
PRIVMSG #quakenet :Hey, what's up\r\n
i tried to run this application, i got following error, plz help me out.
NOTICE AUTH :* Looking up your hostname NOTICE AUTH : Checking Ident NOTICE AUTH :** Couldn't look up your hostname :blueyonder2.uk.quakenet.org 451 * :Register first. :blueyonder2.uk.quakenet.org 451 * :Register first. :blueyonder2.uk.quakenet.org 451 * :Register first. :blueyonder2.uk.quakenet.org 451 * :Register first. :blueyonder2.uk.quakenet.org 451 * :Register first. :blueyonder2.uk.quakenet.org 451 * :Register first. ERROR :Closing Link: by blueyonder2.uk.quakenet.org (Registration Timeout) Cannot read from a closed TextReader.
please put it in vb.net form :]
or any vb
Welcome to Developer Fusion, David!
Feel free to ask me anything on my blog if you want more info.
This thread is for discussions of A Console IRC Bot.