#!/bin/sh AT='MDMA...' ROOM='!x1y2z3:example.com' # log abuse reports echo date $* >> /tmp/report.log # TODO: abuse reports should be forwarded to appropriate admins or # abuse contacts. since some servers don't implement MSC 1929 # an idea is to implement a semi automatic filled db of some kind #https://asra.gr/.well-known/matrix/support # abuse@matrix.org: https://matrix.to/#/!OGEhHVWSdvArJzumhm:matrix.org/$3CNYJIakytzbO6qI4eR8JmCVJUMUUm57YmjJJIOR-ic curl -X PUT "https://asra.gr/_matrix/client/r0/rooms/${ROOM}/send/m.room.message/"`uuid -m -F SIV`"?access_token=${AT}" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"body\": \"@room there was a event reported\", \"msgtype\": \"m.text\"}"