17 Mar
Posted by Harper as General at 07:19 PM
Tags: blogging, hacking, irc, make, perl, plugin, source-code, twitter
The other day, I decided to finish up a twitter hack idea I had and never fully executed. Awhile ago I made a bot that output the updates of my friends into my IRC channel. I did this by writing a quick bot that would log into a dedicated AIM account which received updates from the twitter service. Then the bot would output these updates to my IRC channel. This was neat. It worked OK. the bot kept crashing though – I think because I didn’t make it threaded so the aim connectivity was dependent on activity in the channel – or maybe the other way around. Well whichever reason – it wasn’t that great of a hack.
So the other day I was sitting in IRC but I wasn’t paying attention. Someone wanted to ask me a question – and I didn’t respond. So they kept asking and asking and asking. Until finally I went back in and saw that I was needed. I thought about this on the walk home and decided I needed to make a bot that allowed people to send twitter updates. Then I could follow my IRC channel and get updates when people wanted me on. I then thought how funny it would be to have the bot update on topic change as well.
So I whipped up a quick twitter IRC Bot. You can check out the source on the amazing Google project hosting system.
Please visit the Twitter IRC Bot project page, or download/view the Perl source.
I will probably update the project to include a supybot plugin that will do the same thing. Just so we don’t have to clutter up an IRC channel with 1000 bots.
Btw, I think its funny that twitter is blowing up right now. Everyone is blogging about twitter and people are finally starting to get it. A lot of other people are hating it. I think its hilarious. I love it. I think its really nifty to have a mini blog of all my friends updates. My mom likes it – cuz she then can see what my brother and I are doing on her treo. I think its neat. But then again – it has to do with how you use it and integrate it. It isn’t a blog replacer and I think it is as intrusive as you allow it to be.
Unique visitors to post: 140
4 Responses
cori
September 13th, 2007 at 12:01 pm
1I was thinking about writing a irc->twitter bot that would send a tweet to a given user based on search terms, like your nick.
I actually started thinking about writing an XChat plugin that would send Channel Hilights to twitter, but then though how cool it would be if you could have a bot sit in a channel and have users able to subscribe to alerts that the bot would tweet them on.
Don’t know if I’ll ever get around to it or not, though :)
elliptical . . . : Blog Archive : links for 2007-09-14
September 14th, 2007 at 7:29 am
2[...] My newest twitter hack: Twitter IRC bot » Harper Reed: Tech, Phones, Yo-yoing and Death Metal I was thinking about writing a irc->twitter bot that would send a tweet to a given user based on search terms, like your nick. (tags: comments) Tags:None [...]
Harper
September 16th, 2007 at 6:21 pm
3I do think the bot is an awesome way to do it.
I envisioned functionality as being:
!twitter this is my update – to update twitter
!twitter follow user
!twitter really any twitter command
and then allow the channel to post tweets on topic change
then have the tweets be pushed into the channel. So it would be two way. My hack was horrible.. i am probably going to redo it in python – in a sec ;)
Biiaru
November 3rd, 2007 at 7:31 pm
4Yeah, I was thinking it should post tweets from users it’s following in the channel. Nice little script though – can’t wait for the Supybot plugin (with following ability :P)
I’m sure there’s a way to do it – just check the twitter server every few minutes or so.
Be sure and take a gander at my photos.
If you want to contact me click here to start a chat.
Status
follow me on Twitter
Pictures
Friends
Popular Tags
action awesome blogs books bush cell chicago chris colorado crobar dylan family food games google hacking harper hiromi humor india insane internet iraq job juggle juggling matiss metal movies music nokia phone php politic reed rock school search server sick Sites Technology travel video war
search
Categories
Archives
Recent Entries
Recent Comments
Most Commented
Nata2.org is © 1997-2008 Harper Reed. Theme stoled and inspired by the great BloggingPro theme by: Design Disease