Twitter irssi script
Lets you read direct and public messages, set your status, and send direct messages to twitter through irssi.
Inspired by this script, I thought it’d be quite a bit of work to make it read/write capable. So I tackled the problem and wrote my first very large irssi script.
Unfortunately, it’s awkward to use. If you have any ideas on how to tell irssi to deal with it better, let me know!
Source (download)
Download this, place in your ~/.irssi/scripts directory. twitter.pl
You’ll need a lot of Perl modules to run this. It needs:
- Glib
- POE
- POE::Loop::Glib
- POE::Session::Irssi
- POE::Component::Client::HTTP
- HTTP::Request
- URI
- JSON
- HTML::Entities
Usage
You'll need to load the script:
Then create a “twitter” window:
/window name twitter
Then set your username and password:
/set twitter_password ...
Then save your new settings the config file:
And then you’re done.
Updates will appear in the twitter window. If you don’t have a twitter window, updates will appear in the server window. If you don’t have a server window, updates will appear in your active window.
To update your status, type /twitter This is a test of the friend broadcast system. To send a direct message, type /twitter d friend Ohayo gozaimasu!