|manetta d5d748c691||1 month ago|
|distribusi||1 month ago|
|example||1 month ago|
|log||1 month ago|
|stream||1 month ago|
|README.md||1 month ago|
|RECbot.py||1 month ago|
|generate_handles.py||1 month ago|
|handles.txt||1 month ago|
A small XMPP bot written in Python that logs XMPP conversations into a HTML page, allowing collaborative log writing over time.
The bot is used in group chats, where it includes all images that are send to the group and all messages that include
RECbotis one of the participants in the groupchat!
RECbot works with
__ACTION WORDS__ and unique
__ADD__RECbot entries with
__ADD__ <message>, for example:
__ADD__ Logging as a form of stretching time.or
__DELETE__RECbot entries with
__DELETE__ <HANDLE>, for example:
RECbot uses the
slixmpp library to connect to XMPP and
beautifulsoup to parse the HTML pages.
$ sudo pip3 install slixmpp beautifulsoup4
$ python3 RECbot.py
The bot will ask you to provide the following details:
You can also run it as a oneliner, for example by writing:
$ python3 RECbot.py -u firstname.lastname@example.org -p CHANGEME -g email@example.com -n RECbot -o /var/www/logs/
--use= user / use this XMPP address
It would be so nice to have different RECbot modes:
--log: RECbot writes a growing HTML page with images and text, that can be marked up and styled in HTML/CSS.
--stream: RECbot stores all images that are send to the group, and displays them as an image stream.
--distribusi: RECbot saves files (images, messages as markdown, files, links as HTML pages) and generates a distribusi page of all collected material.
Under the hood the process can be cut up into two procedures:
These modes can be changed at any moment.
[*] These are standalone scripts. They can be used on any set of files in a folder and generate HTML pages with customizable styling.
RECbot <modes> <log HTML page> │ --distribusi > distribusi.py │ [output folder] --log > log.py [output_folder/index.html] │ (saved as files) --stream > stream.py (saved as index.html + stylesheet.css) │ --xxx > xxx.py │ └── stores text/media files in output folder (local/server)
__ACTION WORDS__ become magical
__MAGIC WORDS__ ???