Page 1 of 1

BZFriends II : The return (of the Jabber bot)

Posted: Tue Dec 08, 2009 3:05 pm
by Tut Tank Ahmon
Hi all ,

As some may know, I developped a few months ago a desktop tool that allows you to monitor which friends are online. As I'm curious, I gave a try to Mono framework. I must say that finally all that was a painful experience (GTK# in particular).

So I decided to abandon that project (if any forum admin read this post, feel free to remove the Bzfriend related topic).

I get back to my first love (in just-for-fun programming) and decided this time to take a different approach :

I wrote in python a bot, using Jabber, that retrieve players actually online (thanks Strayer!)
and send you message in your instant messaging software.

How to use it is explained in next post.

Re: BZFriends II : The return (of the Jabber bot)

Posted: Tue Dec 08, 2009 3:21 pm
by Tut Tank Ahmon
BZfriends a just not so stupid jabber bot.

Requirements :
-----------------------
  • - a Jabber or GMail account
  • - a Jabber client (Pidgin, Gajim, ...) or your standard web browser with a page on your gmail account
Activation :
------------------

- Jabber client : add bzfriends@jabber.org as a new contact ; then authorize it to chat with you
- gmail account : in the chat frame , click on "add contact" and type bzfriends@jabber.org


Usage:
----------------

open a chat window with bzfriends.

the main commands are :

league:
displays information about league players online
syntax : league <leaguename:gu|duc|ol|1vs1>
if leaguename is omitted, display all online players in all leagues

add 'contactname' 'tag'
add a contact to monitor
contactname and tag must be surrounded by single quotes '
The tag is optional ; personaly I use it to know who is in which gu/duc team

ex. add 'FiringSquad' 'EIE'

friends

displays the status of your friends (Online (where, which team) /Offline (last seen by bot))

whosonline <filter>
<filter> is an optional string
if filter is omitted, display all players playing BZFlag on public servers
if filter is set, display all entries that match the string :

ex: whosonline quadreg.be will show you all players on the WNC revival server


The following other commands are accepted :

friends:
show status of all your friends


info:
displays various information



league:
displays information about league players online
syntax : league <leaguename:gu|duc|ol|1vs1>
if leaguename is omitted, display all online players in all leagues


listtag:
list friends with given tag
usage : listtag 'TAG'
wildcard is automatic ('TAG*')



notify:
toggle online players notification on/off
syntax : notify on
notify with no argument display notification status



remove:
removes a friend
Syntax : remove <number>
To get <number> use the friends command




report:
report ideas, comment about bzfriends bot
Syntax:
report I'm Bill Gates,your bot is so cool, are you interested in selling it for 1.000.000 $ ?


Please send me any comments to lepoulpe303+TTA@gmail.com

Greetings :
Strayer , to allow me to access his data and the suggestions he made
[dmp] , for bot hosting and moral support

Edit : Added 1vs1 league checker

Re: BZFriends II : The return (of the Jabber bot)

Posted: Thu Dec 10, 2009 12:44 pm
by -panda-
very cool