Skip to content

Instantly share code, notes, and snippets.

tulir /
Last active April 9, 2020 08:45
Matrix room server version checker
if [[ -z "$HOMESERVER" ]]; then
echo "Please set the HOMESERVER environment variable to the C-S API URL (e.g."
exit 1
elif [[ -z "$ACCESS_TOKEN" ]]; then
echo "Please set the ACCESS_TOKEN environment variable to your access token"
exit 1
elif [[ -z "$1" ]]; then
echo "Usage: $0 <alias without #>"
exit 1
* This file is not a part of the phpBB Forum Software package.
* Please be sure what you are doing.
* This code is based on code written by Matthias Kesler
* Licensed under the Apache License, Version 2.0 (the "License");
# This should be the public-facing name (ie: dns name)
# The room ID is NOT the room alias. The ID can be found at the bottom of the room settings dialog in riot-web
# This is your user ID and access token. The access token must match the user.
USER_ID="" # The home server should match this domain as well (ie: as a HS should be in the user)