Go to file
2023-01-29 20:26:02 +13:00
ip Lookups 2022-11-20 18:23:37 +13:00
.env.example Move mastodon URL to a .env var 2023-01-29 20:26:02 +13:00
.gitignore Init 2022-11-20 17:36:31 +13:00
go.mod Add country lookup 2022-11-20 18:11:16 +13:00
go.sum Add country lookup 2022-11-20 18:11:16 +13:00
main.go Move mastodon URL to a .env var 2023-01-29 20:26:02 +13:00
README.md Move mastodon URL to a .env var 2023-01-29 20:26:02 +13:00
structs.go Add report stuff 2022-11-20 19:09:08 +13:00

go-mastodon-matrix-webhooks

Allows you to post signup/report info into a Matrix channel.

Install

Install golang. Install matrix-webhook.

Copy .env.example to .env and fill in the blanks

MATRIX_WEBHOOK_URL="http://127.0.0.1:4785"
MATRIX_WEBHOOK_API_KEY=keySetupInMatrixWebhooks
MATRIX_ACCOUNT_CHANNEL="!channelID:matrix.org"
MATRIX_REPORT_CHANNEL="!channelID:matrix.org"
PORT=8081
IP2LOCATION_FILE="full path to .BIN file"
MASTODON_INSTANCE="mastodon.test"