Glowers Club

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
wiki:newfriends [2021/06/19 19:00]
kakol [How do I greentext?]
wiki:newfriends [2021/06/19 19:01] (current)
kakol [How do I greentext?]
Line 73: Line 73:
 <code bash> <code bash>
 MX_ACCESS_TOKEN="MDAx..." MX_ACCESS_TOKEN="MDAx..."
-MX_HOMESERVER="https://glowers.club"+MX_HOMESERVER="https://homeserver.local"
 function mxSendGreentext () { function mxSendGreentext () {
     if [ -z "$1" ]; then     if [ -z "$1" ]; then
Line 87: Line 87:
     curl -X PUT -H "Authorization: Bearer $MX_ACCESS_TOKEN" -d "$data" "$MX_HOMESERVER/_matrix/client/r0/rooms/$1/send/m.room.message/$tx"     curl -X PUT -H "Authorization: Bearer $MX_ACCESS_TOKEN" -d "$data" "$MX_HOMESERVER/_matrix/client/r0/rooms/$1/send/m.room.message/$tx"
 } }
 +# mxSendGreentext "!room:homeserver.local" "$(ddate)"
 </code> </code>