XMPP Bot to provide version/uptime/ contact information
Find a file
nico 6c6c14b55f * switched xml.etreeElementTree for defusexml
- removed unnecessary pass statement
2018-10-03 23:36:59 +02:00
classes * switched xml.etreeElementTree for defusexml 2018-10-03 23:36:59 +02:00
.gitignore Squashed commit of the following: 2018-10-03 23:24:36 +02:00
LICENCE.md Licence stuff 2018-10-02 01:44:53 +02:00
magicbot.service.dummy refactorization (#1) 2018-10-01 23:17:09 +02:00
main.py Squashed commit of the following: 2018-10-03 23:24:36 +02:00
README.MD Licence stuff 2018-10-02 01:44:53 +02:00

Python XMPP Chatbot

beforehand

Do not opperate this bot on foreign servers.

functions

  • query xmpp server software and version XEP-0092
  • query xmpp server uptime XEP-0012
  • query xmpp server contact addresses XEP-0157
  • display help output
  • respond to username being mentioned

install

requirements

  • slixmpp
  • logging
  • ssl
  • configparser
  • validators

configuration

bot.cfg replace dummy file with correct credentials/ parameters

[Account]
jid=nick@domain.tld/querybot-0.1
password=super_secret_password
[MUC]
rooms=room_to_connect_to@conference.domain.tld,another_room@conference.domain.tld
nick=mucnickname
systemd

Copy the systemd dummy file into systemd service folder. systemdctl daemon-reload and systemctl start magicbot.service to start the bot. If it is neccecary to start the bot automatically when the system boots do systemctl enable magicbot.service.

starting the bot without systemd

Got to the bots directory and run ./main.py &.