From cce801604b862f76ebb2946aaa651b6aa51b19f2 Mon Sep 17 00:00:00 2001 From: Annie Elequin Date: Thu, 16 Sep 2021 14:44:40 -0400 Subject: [PATCH] Rename bridge to go-groupme --- .gitlab-ci.yml | 6 +- Dockerfile | 22 +-- Dockerfile.ci | 15 +- config/config.go | 2 +- docker-run.sh | 8 +- helm/mautrix-whatsapp/.editorconfig | 2 - helm/mautrix-whatsapp/.gitignore | 2 - helm/mautrix-whatsapp/.helmignore | 22 --- helm/mautrix-whatsapp/Chart.yaml | 14 -- helm/mautrix-whatsapp/requirements.lock | 6 - helm/mautrix-whatsapp/requirements.yaml | 5 - helm/mautrix-whatsapp/templates/NOTES.txt | 12 -- helm/mautrix-whatsapp/templates/_helpers.tpl | 55 ------- .../mautrix-whatsapp/templates/configmap.yaml | 45 ------ .../templates/deployment.yaml | 69 --------- helm/mautrix-whatsapp/templates/service.yaml | 16 -- .../templates/serviceaccount.yaml | 8 - helm/mautrix-whatsapp/values.yaml | 137 ------------------ main.go | 6 +- 19 files changed, 22 insertions(+), 430 deletions(-) delete mode 100644 helm/mautrix-whatsapp/.editorconfig delete mode 100644 helm/mautrix-whatsapp/.gitignore delete mode 100644 helm/mautrix-whatsapp/.helmignore delete mode 100644 helm/mautrix-whatsapp/Chart.yaml delete mode 100644 helm/mautrix-whatsapp/requirements.lock delete mode 100644 helm/mautrix-whatsapp/requirements.yaml delete mode 100644 helm/mautrix-whatsapp/templates/NOTES.txt delete mode 100644 helm/mautrix-whatsapp/templates/_helpers.tpl delete mode 100644 helm/mautrix-whatsapp/templates/configmap.yaml delete mode 100644 helm/mautrix-whatsapp/templates/deployment.yaml delete mode 100644 helm/mautrix-whatsapp/templates/service.yaml delete mode 100644 helm/mautrix-whatsapp/templates/serviceaccount.yaml delete mode 100644 helm/mautrix-whatsapp/values.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 13463d3..f65e723 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,13 +13,13 @@ stages: - export GOPATH="$CI_PROJECT_DIR/.cache" - export GOCACHE="$CI_PROJECT_DIR/.cache/build" - export GO_LDFLAGS="-linkmode external -extldflags -static -X main.Tag=$CI_COMMIT_TAG -X main.Commit=$CI_COMMIT_SHA -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`'" - - git clone https://github.com/karmanyaahm/groupme.git ./groupme + - git clone https://gitlab.com/beeper/groupme ./groupme - git clone https://github.com/karmanyaahm/mautrix-go.git ./mautrix script: - - go build -ldflags "$GO_LDFLAGS" -o mautrix-groupme + - go build -ldflags "$GO_LDFLAGS" -o go-groupme artifacts: paths: - - mautrix-groupme + - go-groupme - example-config.yaml .build-docker: &build-docker diff --git a/Dockerfile b/Dockerfile index 2128569..e789990 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,30 +1,20 @@ -FROM golang:1-alpine3.12 AS builder - -RUN echo $'\ -@edge http://dl-cdn.alpinelinux.org/alpine/edge/main\n\ -@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing\n\ -@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories +FROM golang:1-alpine3.14 AS builder RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev COPY . /build WORKDIR /build -RUN go build -o /usr/bin/mautrix-groupme +RUN go build -o /usr/bin/go-groupme -FROM alpine:3.12 - -RUN echo $'\ -@edge http://dl-cdn.alpinelinux.org/alpine/edge/main\n\ -@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing\n\ -@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories +FROM alpine:3.14 ENV UID=1337 \ GID=1337 -RUN apk add --no-cache ffmpeg su-exec ca-certificates olm bash jq yq@edge curl +RUN apk add --no-cache ffmpeg su-exec ca-certificates olm bash jq yq curl -COPY --from=builder /usr/bin/mautrix-groupme /usr/bin/mautrix-groupme -COPY --from=builder /build/example-config.yaml /opt/mautrix-groupme/example-config.yaml +COPY --from=builder /usr/bin/go-groupme /usr/bin/go-groupme +COPY --from=builder /build/example-config.yaml /opt/go-groupme/example-config.yaml COPY --from=builder /build/docker-run.sh /docker-run.sh VOLUME /data diff --git a/Dockerfile.ci b/Dockerfile.ci index 44ce7f9..9e60586 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -1,18 +1,13 @@ -FROM alpine:3.12 - -RUN echo $'\ -@edge http://dl-cdn.alpinelinux.org/alpine/edge/main\n\ -@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing\n\ -@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories +FROM alpine:3.14 ENV UID=1337 \ GID=1337 -RUN apk add --no-cache ffmpeg su-exec ca-certificates bash jq curl yq@edge +RUN apk add --no-cache ffmpeg su-exec ca-certificates bash jq curl yq -ARG EXECUTABLE=./mautrix-groupme -COPY $EXECUTABLE /usr/bin/mautrix-groupme -COPY ./example-config.yaml /opt/mautrix-groupme/example-config.yaml +ARG EXECUTABLE=./go-groupme +COPY $EXECUTABLE /usr/bin/go-groupme +COPY ./example-config.yaml /opt/go-groupme/example-config.yaml COPY ./docker-run.sh /docker-run.sh VOLUME /data diff --git a/config/config.go b/config/config.go index 5573972..c090521 100644 --- a/config/config.go +++ b/config/config.go @@ -80,7 +80,7 @@ type Config struct { func (config *Config) setDefaults() { config.AppService.Database.MaxOpenConns = 20 config.AppService.Database.MaxIdleConns = 2 - config.GroupMe.OSName = "Mautrix-GroupMe bridge" + config.GroupMe.OSName = "Go GroupMe bridge" config.GroupMe.BrowserName = "mx-gm" config.Bridge.setDefaults() } diff --git a/docker-run.sh b/docker-run.sh index 011e946..f94250d 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -6,11 +6,11 @@ fi # Define functions. function fixperms { - chown -R $UID:$GID /data /opt/mautrix-groupme + chown -R $UID:$GID /data /opt/go-groupme } if [[ ! -f /data/config.yaml ]]; then - cp /opt/mautrix-groupme/example-config.yaml /data/config.yaml + cp /opt/go-groupme/example-config.yaml /data/config.yaml echo "Didn't find a config file." echo "Copied default config file to /data/config.yaml" echo "Modify that config file to your liking." @@ -19,7 +19,7 @@ if [[ ! -f /data/config.yaml ]]; then fi if [[ ! -f /data/registration.yaml ]]; then - /usr/bin/mautrix-groupme -g -c /data/config.yaml -r /data/registration.yaml + /usr/bin/go-groupme -g -c /data/config.yaml -r /data/registration.yaml echo "Didn't find a registration file." echo "Generated one for you." echo "Copy that over to synapses app service directory." @@ -28,4 +28,4 @@ fi cd /data fixperms -exec su-exec $UID:$GID /usr/bin/mautrix-groupme +exec su-exec $UID:$GID /usr/bin/go-groupme diff --git a/helm/mautrix-whatsapp/.editorconfig b/helm/mautrix-whatsapp/.editorconfig deleted file mode 100644 index d2097f2..0000000 --- a/helm/mautrix-whatsapp/.editorconfig +++ /dev/null @@ -1,2 +0,0 @@ -[*.{yaml,yml}] -indent_size = 2 diff --git a/helm/mautrix-whatsapp/.gitignore b/helm/mautrix-whatsapp/.gitignore deleted file mode 100644 index 3685de0..0000000 --- a/helm/mautrix-whatsapp/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -charts/* -!*.yaml diff --git a/helm/mautrix-whatsapp/.helmignore b/helm/mautrix-whatsapp/.helmignore deleted file mode 100644 index 50af031..0000000 --- a/helm/mautrix-whatsapp/.helmignore +++ /dev/null @@ -1,22 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/helm/mautrix-whatsapp/Chart.yaml b/helm/mautrix-whatsapp/Chart.yaml deleted file mode 100644 index 3a9c99d..0000000 --- a/helm/mautrix-whatsapp/Chart.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -name: mautrix-groupme -version: 0.1.0 -appVersion: "0.1.0" -description: A Matrix-GroupMe puppeting bridge. -keywords: - - matrix - - bridge - - groupme -maintainers: - - name: Tulir Asokan - email: tulir@maunium.net -sources: - - https://github.com/tulir/mautrix-whatsapp diff --git a/helm/mautrix-whatsapp/requirements.lock b/helm/mautrix-whatsapp/requirements.lock deleted file mode 100644 index c8aa53a..0000000 --- a/helm/mautrix-whatsapp/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: postgresql - repository: https://kubernetes-charts.storage.googleapis.com/ - version: 6.5.0 -digest: sha256:85139e9d4207e49c11c5f84d7920d0135cffd3d427f3f3638d4e51258990de2a -generated: "2019-10-23T22:11:37.005827507+03:00" diff --git a/helm/mautrix-whatsapp/requirements.yaml b/helm/mautrix-whatsapp/requirements.yaml deleted file mode 100644 index 1545fe2..0000000 --- a/helm/mautrix-whatsapp/requirements.yaml +++ /dev/null @@ -1,5 +0,0 @@ -dependencies: - - name: postgresql - version: 6.5.0 - repository: https://kubernetes-charts.storage.googleapis.com/ - condition: postgresql.enabled diff --git a/helm/mautrix-whatsapp/templates/NOTES.txt b/helm/mautrix-whatsapp/templates/NOTES.txt deleted file mode 100644 index 58b07ce..0000000 --- a/helm/mautrix-whatsapp/templates/NOTES.txt +++ /dev/null @@ -1,12 +0,0 @@ -Your registration file is below. Save it into a YAML file and give the path to that file to synapse: - -id: {{ .Values.appservice.id }} -as_token: {{ .Values.appservice.asToken }} -hs_token: {{ .Values.appservice.hsToken }} -namespaces: - users: - - exclusive: true - regex: "@{{ .Values.bridge.username_template | replace "{{.}}" ".+"}}:{{ .Values.homeserver.domain }}" -url: {{ .Values.appservice.address }} -sender_localpart: {{ .Values.appservice.botUsername }} -rate_limited: false diff --git a/helm/mautrix-whatsapp/templates/_helpers.tpl b/helm/mautrix-whatsapp/templates/_helpers.tpl deleted file mode 100644 index 6935623..0000000 --- a/helm/mautrix-whatsapp/templates/_helpers.tpl +++ /dev/null @@ -1,55 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "mautrix-groupme.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "mautrix-groupme.fullname" -}} -{{- if .Values.fullnameOverride -}} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- if contains $name .Release.Name -}} -{{- .Release.Name | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} -{{- end -}} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "mautrix-groupme.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Common labels -*/}} -{{- define "mautrix-groupme.labels" -}} -app.kubernetes.io/name: {{ include "mautrix-groupme.name" . }} -helm.sh/chart: {{ include "mautrix-groupme.chart" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end -}} - -{{/* -Create the name of the service account to use -*/}} -{{- define "mautrix-groupme.serviceAccountName" -}} -{{- if .Values.serviceAccount.create -}} - {{ default (include "mautrix-groupme.fullname" .) .Values.serviceAccount.name }} -{{- else -}} - {{ default "default" .Values.serviceAccount.name }} -{{- end -}} -{{- end -}} diff --git a/helm/mautrix-whatsapp/templates/configmap.yaml b/helm/mautrix-whatsapp/templates/configmap.yaml deleted file mode 100644 index 43acefe..0000000 --- a/helm/mautrix-whatsapp/templates/configmap.yaml +++ /dev/null @@ -1,45 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ template "mautrix-groupme.fullname" . }} - labels: - app.kubernetes.io/managed-by: {{ .Release.Service }} - app.kubernetes.io/instance: {{ .Release.Name }} - helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} - app.kubernetes.io/name: {{ template "mautrix-groupme.name" . }} -data: - config.yaml: | - homeserver: - address: {{ .Values.homeserver.address }} - domain: {{ .Values.homeserver.domain }} - - appservice: - address: http://{{ include "mautrix-groupme.fullname" . }}:{{ .Values.service.port }} - - hostname: 0.0.0.0 - port: {{ .Values.service.port }} - - {{- if .Values.postgresql.enabled }} - database: - type: postgres - uri: "postgres://postgres:{{ .Values.postgresql.postgresqlPassword }}@{{ .Release.Name }}-postgresql/{{ .Values.postgresql.postgresqlDatabase }}?sslmode=disable" - {{- else }} - database: - {{- toYaml .Values.appservice.database | nindent 8 }} - {{- end }} - - id: {{ .Values.appservice.id }} - bot: - username: {{ .Values.appservice.botUsername }} - displayname: {{ .Values.appservice.botDisplayname }} - avatar: {{ .Values.appservice.botAvatar }} - - as_token: {{ .Values.appservice.asToken }} - hs_token: {{ .Values.appservice.hsToken }} - - bridge: - {{- toYaml .Values.bridge | nindent 6 }} - - logging: - {{- toYaml .Values.logging | nindent 6 }} - registration.yaml: "" diff --git a/helm/mautrix-whatsapp/templates/deployment.yaml b/helm/mautrix-whatsapp/templates/deployment.yaml deleted file mode 100644 index ba8faca..0000000 --- a/helm/mautrix-whatsapp/templates/deployment.yaml +++ /dev/null @@ -1,69 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "mautrix-groupme.fullname" . }} - labels: - {{- include "mautrix-groupme.labels" . | nindent 4 }} -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: {{ include "mautrix-groupme.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - template: - {{- if .Values.podAnnotations }} - annotations: - {{- toYaml .Values.podAnnotations | nindent 6 }} - {{- end }} - metadata: - labels: - app.kubernetes.io/name: {{ include "mautrix-groupme.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - spec: - serviceAccountName: {{ template "mautrix-groupme.serviceAccountName" . }} - containers: - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - volumeMounts: - - mountPath: /data - name: config-volume - ports: - - name: http - containerPort: {{ .Values.service.port }} - protocol: TCP -# livenessProbe: -# httpGet: -# path: /_matrix/mau/live -# port: http -# initialDelaySeconds: 60 -# periodSeconds: 5 -# readinessProbe: -# httpGet: -# path: /_matrix/mau/ready -# port: http -# initialDelaySeconds: 60 -# periodSeconds: 5 - resources: - {{- toYaml .Values.resources | nindent 12 }} - volumes: - - name: config-volume - configMap: - name: {{ template "mautrix-groupme.fullname" . }} - - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/helm/mautrix-whatsapp/templates/service.yaml b/helm/mautrix-whatsapp/templates/service.yaml deleted file mode 100644 index 6a86550..0000000 --- a/helm/mautrix-whatsapp/templates/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "mautrix-groupme.fullname" . }} - labels: -{{ include "mautrix-groupme.labels" . | indent 4 }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: http - protocol: TCP - name: http - selector: - app.kubernetes.io/name: {{ include "mautrix-groupme.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/helm/mautrix-whatsapp/templates/serviceaccount.yaml b/helm/mautrix-whatsapp/templates/serviceaccount.yaml deleted file mode 100644 index 9aac194..0000000 --- a/helm/mautrix-whatsapp/templates/serviceaccount.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ template "mautrix-groupme.serviceAccountName" . }} - labels: -{{ include "mautrix-groupme.labels" . | indent 4 }} -{{- end -}} diff --git a/helm/mautrix-whatsapp/values.yaml b/helm/mautrix-whatsapp/values.yaml deleted file mode 100644 index 989cc9f..0000000 --- a/helm/mautrix-whatsapp/values.yaml +++ /dev/null @@ -1,137 +0,0 @@ -image: - repository: dock.mau.dev/tulir/mautrix-whatsapp - tag: latest - pullPolicy: IfNotPresent - -nameOverride: "" -fullnameOverride: "" - -serviceAccount: - # Specifies whether a service account should be created - create: true - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: - -service: - type: ClusterIP - port: 29318 - -resources: {} - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi - -nodeSelector: {} - -tolerations: [] - -affinity: {} - -# Postgres pod configs -postgresql: - enabled: true - postgresqlDatabase: mxwa - postgresqlPassword: SET TO RANDOM STRING - persistence: - size: 2Gi - resources: - requests: - memory: 256Mi - cpu: 100m - -# Homeserver details -homeserver: - # The address that this appservice can use to connect to the homeserver. - address: https://example.com - # The domain of the homeserver (for MXIDs, etc). - domain: example.com - -# Application service host/registration related details -# Changing these values requires regeneration of the registration. -appservice: - id: whatsapp - botUsername: whatsappbot - # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty - # to leave display name/avatar as-is. - botDisplayname: WhatsApp bridge bot - botAvatar: mxc://maunium.net/NeXNQarUbrlYBiPCpprYsRqr - - # Authentication tokens for AS <-> HS communication. - asToken: SET TO RANDOM STRING - hsToken: SET TO RANDOM STRING - -# The keys below can be used to override the configs in the base config: -# https://github.com/tulir/mautrix-whatsapp/blob/master/example-config.yaml -# Note that the "appservice" and "homeserver" sections are above and slightly different than the base. - -# Bridge config -bridge: - # Localpart template of MXIDs for WhatsApp users. - # {{.}} is replaced with the phone number of the WhatsApp user. - username_template: whatsapp_{{.}} - - # Number of chats to sync for new users. - initial_chat_sync_count: 10 - # Number of old messages to fill when creating new portal rooms. - initial_history_fill_count: 20 - # Maximum number of chats to sync when recovering from downtime. - # Set to -1 to sync all new chats during downtime. - recovery_chat_sync_limit: -1 - # Whether or not to sync history when recovering from downtime. - recovery_history_backfill: true - # Maximum number of seconds since last message in chat to skip - # syncing the chat in any case. This setting will take priority - # over both recovery_chat_sync_limit and initial_chat_sync_count. - # Default is 3 days = 259200 seconds - sync_max_chat_age: 259200 - - # Whether or not to explicitly set the avatar and room name for private - # chat portal rooms. This can be useful if the previous field works fine, - # but causes room avatar/name bugs. - private_chat_portal_meta: true - - # Allow invite permission for user. User can invite any bots to room with whatsapp - # users (private chat and groups) - allow_user_invite: true - - # Permissions for using the bridge. - # Permitted values: - # relaybot - Talk through the relaybot (if enabled), no access otherwise - # user - Access to use the bridge to chat with a WhatsApp account. - # admin - User level and some additional administration tools - # Permitted keys: - # * - All Matrix users - # domain - All users on that homeserver - # mxid - Specific user - permissions: - "*": relaybot - "example.com": user - "@admin:example.com": admin - - relaybot: - # Whether or not relaybot support is enabled. - enabled: false - # The management room for the bot. This is where all status notifications are posted and - # in this room, you can use `!wa ` instead of `!wa relaybot `. Omitting - # the command prefix completely like in user management rooms is not possible. - management: !foo:example.com - # List of users to invite to all created rooms that include the relaybot. - invites: [] - # The formats to use when sending messages to WhatsApp via the relaybot. - message_formats: - m.text: "{{ .Sender.Displayname }}: {{ .Message }}" - m.notice: "{{ .Sender.Displayname }}: {{ .Message }}" - m.emote: "* {{ .Sender.Displayname }} {{ .Message }}" - m.file: "{{ .Sender.Displayname }} sent a file" - m.image: "{{ .Sender.Displayname }} sent an image" - m.audio: "{{ .Sender.Displayname }} sent an audio file" - m.video: "{{ .Sender.Displayname }} sent a video" - m.location: "{{ .Sender.Displayname }} sent a location" - -logging: - timestamp_format: Jan _2, 2006 15:04:05 - print_level: debug diff --git a/main.go b/main.go index a5ae795..086a2e9 100644 --- a/main.go +++ b/main.go @@ -42,7 +42,7 @@ import ( var ( // These are static - Name = "mautrix-groupme" + Name = "go-groupme" URL = "https://github.com/tulir/mautrix-whatsapp" // This is changed when making a release Version = "0.1.5" @@ -438,8 +438,8 @@ func (bridge *Bridge) Main() { func main() { flag.SetHelpTitles( - "mautrix-groupme - A Matrix-GroupMe puppeting bridge.", - "mautrix-groupme [-h] [-c ] [-r ] [-g] [--migrate-db ]") + "go-groupme - A Matrix-GroupMe puppeting bridge.", + "go-groupme [-h] [-c ] [-r ] [-g] [--migrate-db ]") err := flag.Parse() if err != nil { _, _ = fmt.Fprintln(os.Stderr, err)