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.
David Plassmann 228b294fb1 Tabs vs Spaces 2 years ago
cmdhandler Tabs vs Spaces 2 years ago
.gitignore init 3 years ago Security 3 years ago
config.example.ini Fixed the fix handler to not be as spammy 3 years ago
db.sql init 3 years ago Enable handler auto-loading 3 years ago
masters.txt Added my mobile nick to masters 3 years ago Change the master answers a little 2 years ago
replies.txt added a few more replies 3 years ago Fix code style 3 years ago
slaps.txt Added one more slap 3 years ago Use the utils delta function in topic handler 3 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.