Last updated::
{{TODO}} Serverless is good section
maybe assume people come here already with the conception of this being good and have this as an addendum
no filtering on rules, but! even in this case it's very useful bc most of the time even in relatively large chat groups there no new messages every second
so most of the time the bot is idle
there are no explicit facilities to create a serverless bot in matrix
and bots generally are treated as "normal users"
but we can piggy-back on the push notifications mechanism which does a thing very similar to what we're looking for - on a new message (matching some criteria) it'll call an http endpoint with a given event content
I've built a small tool that simplifies a setup for this at ....
code at ...
and you can also see the explanation of what it's doing in the Readme
(this is actually the main "trick" from here you'd proceed as if you're building a serverless bot for any other platform)
After you've set up this up - your http endpont would be called with the content of the events
excluding the events sent by the bot user (...)
They would look like
...
We'll use th
caveats
messages from self and usability in DMs
about encrypted messages
Inability to filter what messages get delivered