Thursday, November 1, 2007

GTalk Conference Bot setup

Our project needed a project-wide chat with as minimal hassle as possible i.e. not programs to install, minimum user configuration etc.
I started to look at Jabber right away. Jabber standalone server seemed a very cool and robust solution (ejabberd, for instance, has a lot of features). However, own jabber server, in order to function properly (s2s), requires SRV DNS record and permission from our IT department to enable port forwarding for 5223 port (our server is behind firewall). So I focused on something based on google talk and found the Gtalk Conference Bot (http://coders.meta.net.nz/~perry/jabber/confbot.php) -
Small and very neat python program which uses ordinary gmail account as proxy. Each messages sent to the address gets re-sent to all users in the account contact list.
Install was very easy. Couple of notes:
  • when running ./confbot.py for the first time GTalk account should be specified without domain name, i.e. just myconference
  • confbot.ini has several parameters which are better to be changed;
    private=1 - to make the chat private so the program authors won't be bothered with my chat notification (thank you guys for the program btw);
    debug=0 - it is better to switch off debug logging to improve performance and avoid logs growing too fast
  • Useful commands
    /invite googleusername - invite a user
    /names - show registered with the chat users
    /reload - reload changes from confbot.ini
    )help - command help
  • I've added it to start automatically via rc.local. Not sure how stable it is yet, so probably I will move it under init. If it is stable then I better create a proper init.d script

No comments: