Browse Source

Add it to the correct place

master
Alex 1 year ago
parent
commit
7e2294933a
Signed by: lx GPG Key ID: EDABF9711E244EB1
  1. 2
      Dockerfile
  2. 1
      mxlib/api.go
  3. 1
      mxlib/client.go

2
Dockerfile

@ -3,7 +3,7 @@ RUN pacman -Sy python-pip --noconfirm; pacman -Scc --noconfirm; find /var/cache/
#FROM python:3.8.6-buster
RUN pip install fbchat
RUN pip install fbchat==1.9.7
RUN mkdir /app
WORKDIR /app

1
mxlib/api.go

@ -41,6 +41,7 @@ type LoginResponse struct {
type RegisterRequest struct {
Auth RegisterRequestAuth `json:"auth"`
Type string `json:"type"`
Username string `json:"username"`
}

1
mxlib/client.go

@ -147,6 +147,7 @@ func (mx *Client) RegisterUser(username string) error {
Auth: RegisterRequestAuth{
Type: "m.login.application_service",
},
Type: "m.login.application_service",
Username: username,
}
var rep RegisterResponse

Loading…
Cancel
Save