-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit * Add markdown formatting * Add template * Add initial version of matrix bot * Use token-base auth for connector * Add workaround for problem with ':' in --mail-user value * Add example config for matrix connector * Return err rather than panickin * Cast event.RoomID to string * Fix log line * Split connector and target only on first ':' * Remove workaround now that we handle ':' in targets * add: config reading, gofmt run * add: code for leaving rooms, disable pulling historic messages on restart, double-messages work now * leaveIfRoomEmpty() now called on others joining/leaving rooms where the bot is * optimize empty room leaving * Respond to messages If messages in the channel start with !bot the bot will reply with a fixed message. * Comment out message-response code * Removed unused strings import * Add docs for Matrix connector * minor readme update * Add some words to matrix docs Co-authored-by: Jager,Petar <[email protected]> Co-authored-by: Jager,Petar <[email protected]>
- Loading branch information
1 parent
85fe394
commit 7069ded
Showing
15 changed files
with
505 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ var ( | |
CmdParams{ | ||
Subject: "Slurm subject line", | ||
Other: []string{ | ||
",conX,conX:pj,msteams:pja,:::xxx,,msteams::,petarj,:xxx", | ||
",conX,conX:pj,msteams:pja,:::xxx,,msteams::,petarj,matrix:!channelid:server.org,:xxx", | ||
}, | ||
}, | ||
Receivers{}, | ||
|
@@ -57,6 +57,10 @@ var ( | |
scheme: "conX", | ||
target: "petarj", | ||
}, | ||
{ | ||
scheme: "matrix", | ||
target: "!channelid:server.org", | ||
}, | ||
}, | ||
}, | ||
{ | ||
|
@@ -72,6 +76,7 @@ var ( | |
"[email protected]", | ||
"msteams:pja", | ||
":::pja", | ||
"matrix:!channelid:server.org", | ||
"::pja", | ||
}, | ||
}, | ||
|
@@ -90,6 +95,10 @@ var ( | |
scheme: "msteams", | ||
target: "pja", | ||
}, | ||
{ | ||
scheme: "matrix", | ||
target: "!channelid:server.org", | ||
}, | ||
}, | ||
}, | ||
} | ||
|
Oops, something went wrong.