A bot that is looking after our wiki and creates the pages for the coming plenary and sends the protocols.
Dokuwiki must have installed the GOTO plugin. The XML-RPC API has to be activated in the settings. Otherwise the bot won't be able to communicated with the wiki.
./plenumsbot.py
There are no commandline switches, yet.
- get the current date
- calculate dates of last and next plenum according to the configured day of week in config.json
- loads the protocol of last (calculated) plenum
- if the end time is still "20:xx Uhr" it's considered the plenum didn't take place
- topics are extracted from the last protocol
- if the end time is set to a valid time it's considered the plenum took place and nothing (except upcoming events) has to be carried over
- A blank protocol is created from a given template
- events are extraced from last plenum and events in the past are dropped from the list
- the topics and the upcoming events are filled in a template to create the protocol template for the next plenum
- the page is created in the wiki and populated with the contents
- a link (if not existing) is inserted into the list of protocols
- the redirect from "themensammlung" is updated to point to the page created for the next protocol
wiki_url
: base url of your dokuwiki installationwiki_user
: user the bot uses to login to the wikiwiki_password
: the password for the given usernamespace
: the namespace in which the protocols are locatedindexpage
: the page holding a list of all plenum protocolsredirectpage
: name of the page redirecting to the upcoming protocolplenum_day_of_week
: the day of week on which the plenum takes place (0=Monday, 1=Tuesday, 2=Wednesday…)