package
module
Version:
v0.0.0-...-90e52da
Opens a new window with list of versions in this module.
Published: Feb 16, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
GoHubsBot
package to create bots for mozilla hubs rooms
and bridge mozilla hubs chat to matrix and viceversa
open to git merge requests
- Changed all the bot to use websockets instead of chromedp, so no resources problems anymore
- listen() to listen for chat and do something with the text
- Add e2ee to matrix client
- bridged mozilla hubs to matrix:
- chat
- Joins
- leaves
- hash presence_state joins and leaves to match id with nick
- use presence joins leaves hash to sent nick of chat msg to matrix
- add and remove presence from hash to keep hash updated
- Rename bot name mozilla hubs side
- Bridge matrix to Mozilla hubs
- Add non-bridge related bot things like
Documentation
¶
-
func GoHubsBot(site, origin, goHubsName string) *websocket.Conn
-
func Heartbeat(ws *websocket.Conn)
-
func Matrix(url, user, password string, channel id.RoomID) *mautrix.Client
-
func MatrixSay(client *mautrix.Client, message string, channel id.RoomID)
-
func WebsocketsListen(ws *websocket.Conn, matrixClient *mautrix.Client, matrixChannel id.RoomID, ...)
-
type Message
-
type Meta
-
type Presence
-
type PresenceDiff
-
type PresenceState
-
type Profile
type Meta struct {
Context struct{}
Permissions struct{}
PhxRef []byte `json:"phx_ref"`
PhxRefPrev []byte `json:"phx_ref_prev"`
Presence string `json:"presence"`
Profile Profile
Roles struct{}
}
type Presence struct {
Metas []*Meta
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.