|
From: Todd N. <osx...@ya...> - 2005-02-24 05:08:27
|
Dear Sensetalkers, I was working on a IRC bot/logger for Freenode using Sensetalk and needed the IRC error numbers in constants for my code to work the way I wanted (ie, clean, simple, blah blah blah). I found the page with the IRC 1459 with error codes (from 1993) and decided I want them formated in a function nicely. So, take the output of pbpaste which was used to get them off the webpage, and stuff that into a ST based filter tool, and presto magic most of the output was exactly what I want. http://sensetalk.dyndns.org/examples/irc/ This was a lesson in how to quickly (whip up) a tool that would do the job that I wanted. Could have said been done in awk, sed or grep, sure thing. Perl, you bet. Ruby or Python, no problem. Could have been done in shell. However, it was a 2 minute 'ordeal' in ST and I don't think that would be the case another language, not at least for me. Enjoy the script, its principle is what matters. YOu can get a LOT done with ST in a short amount of time. SenseTalk is a very fast, simple and clean way to devise rather complex filters. Best wishes and warm regards, Todd Nathan IORCC Founder/Judge (SeaForth) irc://irc.freenode.net/iorcc http://iorcc.dyndns.org/ __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail |