The xil chat bot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Simon Vikstrom 8a8512d03c Care about format 5 years ago
cmdhandler Care about format 5 years ago
.gitignore init 6 years ago Security 5 years ago
config.example.ini Fixed the fix handler to not be as spammy 5 years ago
db.sql init 6 years ago Enable handler auto-loading 6 years ago
masters.txt Added my mobile nick to masters 6 years ago Ignore case when comparing masters 6 years ago
replies.txt added a few more replies 6 years ago Fix code style 6 years ago
slaps.txt Added one more slap 6 years ago Use the utils delta function in topic handler 6 years ago

Anna - The xil XMPP bot


Install python3 packages

pip3 install sleekxmpp configobj
Command-specific packages
  • localtime - python-dateutil
  • topic - jinja2

Set up the database

sqlite3 db.sq3 < db.sql

Config file

Copy config.example.ini to config.ini and edit it to your liking.

Note: By default all the handlers are enabled, so make sure you have all their packages installed. The modules are imported inside functions so you won't see any missing package errors until you try to use the command.

Run the bot


Security notes:

Its possible to access class.base.subclasses.... on the functions passed to the template. Disable topic if you dont trust your users.