2021-01-22 00:29:01 +01:00
# LogBot
2020-02-06 15:29:18 +01:00
2021-04-28 15:51:37 +02:00
LogBot is a bot for asynchronous collective logging and log writing over longer periods of time. The bot operates in a chat environment, from where it saves images, messages and other media files into a webpage. The bot is made by members of Varia and is used hand in hand with event preparations`[1]`, collective research`[2][3]` or as a tool for publishing materials on the go`[4]`. The bot runs on a self-hosted XMPP chat infrastructure, hosted and maintained by members of Varia.
2020-02-06 15:29:18 +01:00
2021-04-28 15:51:37 +02:00
`[1]` : https://vvvvvvaria.org/logs/x-y/ X-Y log, in preparation of Plaintext Partyline \
`[2]` : https://vvvvvvaria.org/logs/digital-autonomy/log.html Collective research log, around the term "digital autonomy" \
`[3]` : https://vvvvvvaria.org/logs/afijeno/ Pub.club research log, around community publishing initiatives \
`[4]` : https://vvvvvvaria.org/logs/zamopuzo/ Backlog, the making of the streaming infrastructure of Varia
2021-04-28 15:42:38 +02:00
2021-04-28 16:00:52 +02:00
![](screenshots/logbot-screenshot-1.png)
![](screenshots/logbot-screenshot-2.png)
2021-04-28 15:51:37 +02:00
2021-04-28 16:05:21 +02:00
## How is LogBot made?
2021-04-28 15:42:38 +02:00
LogBot is small XMPP bot written in Python that is used in group chats. It uses the [xbotlib library ](https://git.vvvvvvaria.org/decentral1se/xbotlib ) written by [decentral1se ](https://git.vvvvvvaria.org/decentral1se ).
2020-02-06 15:29:18 +01:00
2021-04-28 16:05:21 +02:00
Situated tails
- Archive bot, Relearn 2017, < https: // gitlab . com / relearn / relearn2017 / - / tree / master / xmpp-bots / archive-bot >
- Streambot, Varia website extension 2017-2018, < https: // git . vvvvvvaria . org / varia / xmpp . streambot >
- Logbot v1, Varia XMPP extension 2017-2020, < https: // git . vvvvvvaria . org / varia / bots / src / branch / master / logbot >
- Bots as Infrapunctures @ Obfuscation Workshop, May 2021, Cristina Cochior & Manetta Berends, < https: // 3rd . obfuscationworkshop . org /> & < https: // bots-as-digital-infrapunctures . dataschool . nl />
2021-01-22 00:14:44 +01:00
2021-01-22 00:29:01 +01:00
## How to use LogBot?
2021-01-22 00:14:44 +01:00
2021-02-01 11:14:57 +01:00
```
2021-01-22 00:29:01 +01:00
*Oh dear, logbot is here!*
2021-01-22 00:14:44 +01:00
2021-02-01 11:14:57 +01:00
(You can speak to the bot using @logbot or logbot:)
2021-03-12 12:10:01 +01:00
2021-02-01 11:14:57 +01:00
< image > : Your image is added to the log.
2021-03-12 12:10:01 +01:00
2021-02-01 11:14:57 +01:00
logbot @help: Print this message
2021-03-12 12:10:01 +01:00
2021-02-01 11:14:57 +01:00
logbot @add < message > : Add a message to the log.
2021-03-12 12:10:01 +01:00
2021-02-01 11:14:57 +01:00
logbot @delete < num > : Delete posts from the log. For example: @logbot @delete 5
2021-03-12 12:10:01 +01:00
2021-02-01 11:14:57 +01:00
logbot @title < string > : Set the title of your log.
2021-03-12 12:10:01 +01:00
2021-04-23 16:52:55 +02:00
logbot @style < style sheet > : Switch to another stylesheet. For example: logbot @style log. Available stylesheets include: timeline, float, opentab.
2021-03-12 12:10:01 +01:00
2021-03-12 21:19:40 +01:00
logbot @font < font > : Switch to another font. For example: logbot @font font. Available fonts include: polsku, notcouriersans; or select None to switch back to default serif.
2021-03-12 12:10:01 +01:00
2021-02-01 11:14:57 +01:00
logbot @uptime: To check how long @logbot has been around
2021-03-12 12:10:01 +01:00
2021-02-01 11:14:57 +01:00
@bots: To see who is around :)
```
2020-02-06 15:29:18 +01:00
2021-03-12 12:10:01 +01:00
## Stylesheets
2021-03-12 21:19:40 +01:00
* timeline
* float
2021-04-28 15:42:38 +02:00
* opentab
2021-03-12 21:19:40 +01:00
2021-04-28 15:42:38 +02:00
These can be found in the folder `stylesheets/` .
2021-03-12 12:10:01 +01:00
## Fonts
2021-03-12 21:19:40 +01:00
* polsku
* notcouriersans
* None
2021-01-22 00:29:01 +01:00
## Requirements
2020-02-06 15:29:18 +01:00
2021-04-28 16:08:00 +02:00
- [xbotlib ](https://git.vvvvvvaria.org/decentral1se/xbotlib ) (`pip3 install xbotlib`)
- [jinja2 ](https://jinja.palletsprojects.com/ ) (`pip3 install jinja2`)