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.
arturo182 182e09751b giphy: Use python3 APIs 3 years ago
cmdhandler giphy: Use python3 APIs 3 years ago
.gitignore init 3 years ago
Readme.md 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
handlers.py Enable handler auto-loading 3 years ago
masters.txt Added my mobile nick to masters 3 years ago
mucbot.py Ignore case when comparing masters 3 years ago
replies.txt added a few more replies 3 years ago
set_template.py Fix code style 3 years ago
slaps.txt Added one more slap 3 years ago
utils.py Use the utils delta function in topic handler 3 years ago

Readme.md

Anna - The xil XMPP bot

Installation

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

python3 mucbot.py

Security notes:

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