|Médéric Hurier c04971802a Update 'LICENSE.txt'||3 months ago|
|.gitignore||5 years ago|
|LICENSE.txt||3 months ago|
|README.md||4 years ago|
|chattail.py||4 years ago|
|test.conf.sample||4 years ago|
Chattail is a bot that allows you to monitor your log with a simple XMPP chat client (full list).
This program is functional, but I haven’t test it in a production environment.
Use it with caution, but tweak it as you like (see the LICENCE file).
When the program is launched, the JID associated with the bot will appear online. Simply pass your command just like a Command Line Interface:
Use the ‘help’ action to get more information about the command you wish you use. It’s straightforward !
This section will explain the design:
Why use XMPP and not start a new protocol from scratch ? XMPP is extensible and come with a lot a functionality and software (client/server). It’s an open standard, so we don’t have to reinvent the wheel.
Why Python ? It’s a popular, mature and easy to use language. SleekXMPP is a well designed library (thanks Fritzy.
Why only one big Python file ? It’s easier that way. Download the file, edit a configuration file and run the program !
Why threads other processes ? I don’t need big computation, but sharing memory was necessary (even though the stopping condition can be improved).
Why there is no unit tests ? It’s hard (although possible) to test an asynchronous client/software program. If you need to debug chattail, just give the -v (verbose) to turn the console display (It can give you a lot of information).
If you have more questions, don’t hesitate to contact me !