bird

bird is a simple interactive console Twitter client.

Status

This is a fully-functional modular Twitter client, used by me (@dr_lepper).

Features

Usage

bird comes in one single file bird.py. You can download it here: (http://git.hades.name/cgit.cgi/bird.git/plain/bird.py). Then just simply run it.

Prerequisites

bird has one dependency:

In Gentoo, for now this package is available in Aeacus only. You can follow the procedure of its adoption here: https://bugs.gentoo.org/show_bug.cgi?id=356235

Built-in commands

Commands start with symbol '/'. Everything else will be posted to your Twitter.

Built-in variables

Variables are stored (by default) in "~/.config/birdrc" in an INI-file. To access them in runtime use "/set". To save changed values use "/save".

Various colors can be also changed in the config:

Modules

autostatus

Retrieves your last tweet and sets your current status in IM clients to its text.

Supported IM clients

  • gajim (/set autostatus.client gajim) (note that D-Bus support is required),

  • Psi (/set autostatus.client psi),

  • test client (/set autostatus.client test) — does nothing but print what would autostatus set your status to, had you configured it properly.

Variables

  • autostatus.client — type of IM client (see above),

  • autostatus.ignorereplies — if True, autostatus will not set your status to your last tweet if it is a reply to another Twitter user.

blacklist

Filters tweets based on user ID and any other tweet field.

Commands

  • /blacklist username — add given user to the blacklist. Omit username to show current blacklist.

  • /blackfield field regexp — add given list to the blacklist entries for field field. Omit regexp to remove all blacklist entries.

Blacklist is stored in config. Don't forget to save it with /save

browser

Author: Tatiana Gornak

Opens the URL from the given tweet with your browser.

Commands

  • /browse key url numbers — open URLs with given numbers from tweet with key key. If there is only one URL in tweet, you can omit the numbers

Variables

  • browser.agent — executable name to open URLs with,

  • browser.foreground (on/off) — when on, Bird is suspended until your browser quits,

  • browser.verify (on/off) — when on, Bird will first try to open URL itself to check if it exists.

delete

Author: Tatiana Gornak

Allows you to delete your tweets.

Commands

  • /delete key — delete tweet with key key

follow

Allows you to edit your followers list.

Commands

  • /follow username — start following username

  • /unfollow username — stop following username

longtweets

Splits long tweets into several shorter tweets.

threads

Unfold the conversation threads.

Commands

  • /thread key — trace the conversation that preceeds the given tweet key.

translate

Author: Tatiana Gornak

Translates the tweets.

Commands

  • /translate key from-to — translates tweet with key key from language from to to.

Variables

  • translate.from — the default language to translate from. If you set this, you can omit it in /translate command.

  • translate.to — the default language to translate to. If you set both these variables, you can omit the language spec as a whole.

unshorten

Replaces short URLs in domains like bit.ly and goo.gl into the full URLs.

Variables

  • unshorten.allow — a space-separated list of additional domains that are URL shorteners

userpics_aa

Draws userpics of your friends in ASCII-art using Aalib.

Prerequisites

Variables

  • userpics_aa.width, userpics_aa.height (integer) — dimensions (in characters) of the drawings

verify

Prints you everything bird is going to do, so that you can double-check it.

Commands

  • /commit — send everything bird just asked you to verify

Acknowledgements

The project is largely a Python rewrite of this project (http://www.floodgap.com/software/ttytter/) by Floodgap.

Development

You can get the sources with the following command: git clone git://git.hades.name/bird.git

Bird (last edited 2011-09-05 13:00:53 by Hades)