| .gitignore | ||
| bot.py | ||
| LICENSE | ||
| README.md | ||
| remindbot.py | ||
| urlbot.py | ||
rbot
This is rumpelsepp's collection of matrix bots.
There is a small “library” for theses bots in bot.py.
Run
All bots can be run on any computer from the command line with zero configuration. No special setup (e.g. reverse proxy, …) is required. A dedicated matrix user is required for each bot.
urlbot
A simple bot who spits out the HTML title of an URL.
To avoid spam the bot only considers lines where the URL is the only content.
http or https prefix es required.
remindbot
Remindbot is a very simple matrix bot for leightweight reminders. It's in its early days, expect bugs, feel free to test and send feedback!
Usage
The bot is bound to a matrix user, for my usage it is @remindbot:myhomeserver.de.
In a direct chat a (kind of) shell like interface is exposed:
notify TIMESPEC [MESSAGE]: Send the specified message atTIMESPEC.table: Show the queued remindersrm ID [ID [ID]…]: Delete task(s) withID.help: Show a help page
Timespec
The timespec is simple, these variants exist:
5: 5 seconds5[smhd]: 5 seconds, minutes, hours, daysHH:MM: time on current daytomorrow HH:MM: time on the next dayYYYY:mm:dd HH:MM: arbitrary day+time
24h format must be used.
Caveats
Only use a direct chat (for now)
Do not run the bot in a room with more people. I want that the bot react only on mentions, but this is not implemented yet! Currently, it parses every message which would spam the chatroom. Only use the bot in direct conversations, for now.
No state
Currently, the bot looses all queued tasks on restart. This is on the radar.
Table is global
The scope of the task table must be filtered per room. Currently, it returns the whole table. Do not report this as a privacy issue, please. This will be addressed soon.
Bugs/Patches
I assume there are lots of bugs in this fresh piece of software. Just write an email, or send patches to: ~rumpelsepp/public-inbox@lists.sr.ht