Sponsored by Dragon Age: Origins
Can't get enough Dragon Age: Origins? Check out new footage. view!
DragonAge.BioWare.com - EA presents BioWare's new dark fantasy epic Dragon Age: Origins. '9/10' from Game Informer.
32 Comments
- rustyryan, on 10/12/2007, -10/+29@darkmule
tut.... orial say it with me now : tut..orial ... tut.orial ..... tutorial! - niteskunk, on 10/12/2007, -0/+14Age means nothing. IRC bots are great projects for when you're learning a programming language. Besides the basics, one can learn sockets, parsing, error trapping, and more (such as file I/O if you want to implement something like a config file). I wrote a decently sized IRC bot in C++ shortly after I first started, I learned a ton.
- johnsto, on 10/12/2007, -0/+10It would be a better tutorial if it explained exactly what the code did and WHY, rather than just telling you what to type in. Tutorials are meant to *explain* things, not just tell you what to do! It should explain the 'boring bit' and say what it's for. It should explain the string substitution. It should explain how to test it. Otherwise, it's no better than a load of source code with a load of worthless comments ("This is to make sure everything works fine." - argh!!!)
Terrific example of how easy network coding is in Python though. Gotta love it. - kiddailey, on 10/12/2007, -0/+9Not to mention that IRC is very very much alive.
- rompom7, on 10/12/2007, -0/+8/me waits for efnet to get the digg effect
- inactive, on 10/12/2007, -0/+7Libraries are always better to use, but not for us newbies. You wouldn't want to innundate our minds witht he advanced topics first, would you?
- spafbnerf, on 10/12/2007, -1/+5http://python-irclib.sourceforge.net/
http://supybot.com/ - LabThug, on 10/12/2007, -0/+4You're right, and I do agree that he should have gone into more detail. However, this article lives up to its title. It's never claimed to be a python tutorial, just a HOWTO on creating an IRCBot with python.
If you want a tutorial, try this:
http://docs.python.org/tut/
Good luck! - darkmule, on 10/12/2007, -2/+6It was early in the morning, poke fun if you wish.. pfft.
Needless to say, I realized its a direct rip of the O'Reily tutorial offered on their site out of the IRC Hacks book. Kind of disappointing.
http://www.oreilly.com/pub/h/1968
Doesn't matter much, I still find it pretty helpful.
'tutorial' -- for the skeptics. I can say it. :p - headzoo, on 10/12/2007, -2/+5"As always you would be better off spending your time learning how to use a library."
Not if you're new to the programming language. That's a bit like putting the cart before the horse. And that's also why we have so many script-kiddies today: They never actually learn how to program, they only learn how to put other people's (people who actually know what they're doing) work together like legos. - lassel, on 10/12/2007, -6/+8As always you would be better off spending your time learning how to use a library.
I am sure that excellent IRC libraries exits for Python, however I am a Java guy so I can only recommend what I know:
http://www.jibble.org/pircbot.php (small tutorial included, if you scroll down)
I used it a couple of times and it is amazingly simple and fun to use. - Itkovian, on 10/12/2007, -0/+2lambdabot FTW.
- byter, on 10/12/2007, -1/+2not bad for a tutorial and for newbies, but i found using irclib.py library easier to use in the long run, and for some examples try http://www.devshed.com/c/a/Python/IRC-on-a-Higher-Level/.
- Sakkath, on 01/10/2008, -0/+1Ahahaha!
- digitalme, on 10/12/2007, -0/+1It's not a hard thing to do, making an IRC bot. It's good to note that this tutorial is also very easily adapted to Ruby.
- Grimboy, on 10/12/2007, -0/+1Or much, much better: http://diveintopython.org/
- wnl7prince, on 10/12/2007, -0/+1Here is a great tutorial for python, which includes a bunch of interactive program making:
http://ibiblio.org/obp/thinkCS/python/english2e/html/index.html - lassel, on 10/12/2007, -1/+2@Woops
Using pircbot is much simpler than the Python code that is posted.
It also automatically gives you a much cleaner design, that a newbie would have to struggle to get otherwise.
Plus a newbie won't run into various odd bugs that could come from a naive implementation of the IRC protocol.
So I'd say that a library is better for everybody, newbies too.
Later, if you are interested in the inner workings of the irc protocol, you can always check out the sourcecode of the lib. - kolakutusu, on 07/14/2008, -0/+0If it explained exactly what the code how to make asimple IRC, rather than just telling you what to type in.
Tutorials are meant to things, not just tell you what to do if it explained exactly what the code did and WHY just telling what to type this. Tutorials are meant to things, not just tell you what to do the digg effect.
Thanks,
http://www.onlineflashgames.org
http://www.bid-directory.net - MrPig, on 10/12/2007, -1/+1This is not from SCRATCH - but a lot closer than most people will get to real code. I guess progress is progress *yawns*.
- brhad56, on 10/12/2007, -1/+1I'm a Java guy myself. PircBot looks very easy to use, but could also be very powerful.. thanks!
- defnull, on 10/12/2007, -3/+2Buried for lame copy&paste. See the original by o'reilly
http://www.oreilly.com/pub/h/1968 - bigfatdummy, on 10/12/2007, -2/+0I have been working on a new python Irc bot myself.
It's great for a nooblet to start off with a very simple bot. I can't stand it when someone claims to have built their own bot but has only downloaded eggdrop or dremabot. - inactive, on 10/12/2007, -8/+3Yeah, it's a great tutorial. I'm actually in the process of learning process, and this will come in handy a wee bit later.
- phenolholic, on 10/12/2007, -6/+1how to make a prone and ownable IRC bot is what the title should read. if you're a newbie to python, then follow that tutorial. if you want a good and stable IRC bot, use an eggdrop bot
- Pigeon, on 10/12/2007, -8/+3The plural is 'Lego' goddammit!
/Lego Nazi - inactive, on 10/12/2007, -18/+12IRC bot? What is this? 1992?
- darkmule, on 10/12/2007, -12/+6Good tut for people who want a simple IRC bot, and people who are just starting on Python. Also amusing to see how long it takes for network staff to attempt a /gline.
- simpleid, on 10/12/2007, -10/+4@rustryan
tut ..... tut .. tut! - mrTribal, on 10/12/2007, -14/+7Such an absolutely THRILLING life too what with your hours of browsing digg and posting acerbic comments.
via your profile.. News & Videos Dugg: 1,242 - ByteGuerilla, on 10/12/2007, -9/+2babararacucudada!
- CrookedAsterisk, on 10/12/2007, -23/+7rustyryan,
Are you kidding me? "Tut" is the cool way to write it, and who the hell has the time to actually write the full word?! Some of us have LIVES, you know?


What is Digg?
Browsing Digg on your phone just got easier with our enhancements to the