Fun with the Facebook API and a new WargenInt

28 09 2008

I wrote my first Facebook desktop application called Lfcal last week. The process was mostly painless thanks to the people from pyfacebook. On the Perl side of things WargenInt 1.0 sees the light of day with both scripts for Xchat and Irssi.

Lfcal
It was my birthday last week and some of my friends on Facebook sent a message or wall post saying Happy B day. This set me thinking I almost never do this because I don’t remember birthdays and I only log in to Facebook about once a week to see what everybody is doing. So after a Google or two I found pyfacebook “a thin wrapper for accessing Facebook’s RESTful API through Python” and created a application to get all the birthdays of my Facebook friends. But just to get the dates is not enough I also want to be reminded each day this is where Calender comes in handy.

Calender is a Linux command line application that reads a calendar file with dates and prints the information on the screen. A while back I added calendar to bashrc to get all my reminders each time I open a new bash shell something I am guaranteed to do at least once a day when I use my computer. Instead of just displaying birthdays Lfcal can also add each birthday to the calendar file provided as an argument. Now it is possible to be reminded of birthdays without going to Facebook everyday. To find out more about Lfcal click here.

WargenInt
I started hacking on a GTK interface for the All-Out-War IRC game and released version 1 this week. Some of the changes since 0.6 include a small rewrite to the way that the interface communicates with the Bot running the game.

In the past the interface needed an Ip and port provided by the Bot when the DCC request is sent and in a way bypassed the DCC chat capability of the users IRC client. This was removed and the interface now uses the Xchat perl scripting interface allowing a tighter integration with the Xchat DCC chat capabilities leading to a more stable and reliable application. This also turns the Interface into a Xchat script. Another small addition is a Irssi script that includes all the automatic features of WargenInt without the GTK interface.

Finally I have given up on Windows users most of them use MIRC anyway and are not to keen to switch to Xchat. Testing on Windows is also hard since I don’t have a copy installed at the moment. I will be happy to provide information if someone wants to maintain a Windows version or try the Interface with Xchat on Windows but I think it will just be easier to install Ubuntu or Mandriva and come over to the good side of the force.

For more on WargenInt click here.

If you are looking for a nice game head over to irc.atrum.org #all-out-war. Happy hacking !!!.


Actions

Information

Leave a comment