-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To support Matrix as an outlet for ghi we: -edited ghi/configuration.py to read, check and use the (optional) Matrix-settings from the .yml -created ghi/ghimatrix.py to facilitate creating credential-files, logging onto a Matrix server and sending messages to one or more rooms on it by using the matrix-nio module -changed some naming and matrix-specific things in most of the files -changed the README.md en .ghy.yml.example to include the new Matrix-support -created ghi/util.py to facilitate in a workaround for a Matrix-issue (matrix-org/matrix-appservice-irc#1562) -added relevant exception-handlers No changes to the config-file are necessary when using IRC. It works quite well with server.py, haven't tested it with AWS though, but should work as well. Closes #27 Co-authored-by: W. J. van der Laan <laanwj@protonmail.com>
- Loading branch information
Showing
10 changed files
with
525 additions
and
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
version: 1 | ||
pools: | ||
- name: pool-name | ||
- name: "pool-name" | ||
github: | ||
repos: | ||
- name: owner/repo | ||
secret: abc123 | ||
- name: "owner/repo" | ||
secret: "abc123" | ||
irc: | ||
host: chat.freenode.net | ||
nick: my-irc-bot | ||
password: myBotPassword123! | ||
host: "chat.freenode.net" | ||
nick: "my-irc-bot" | ||
password: "myBotPassword123!" | ||
channels: | ||
- channel1 | ||
- "channel1" | ||
mastodon: | ||
instance: https://mstdn.social | ||
user: happy@place.net | ||
password: myBotPassword123! | ||
secretspath: /home/thatsme/my/secrets/ | ||
appname: my-mastodon-bot | ||
instance: "https://mstdn.social" | ||
user: "happy@place.net" | ||
password: "myBotPassword123!" | ||
secretspath: "/home/thatsme/my/mastodonsecrets/" | ||
appname: "my-mastodon-bot" | ||
merges_only: True | ||
matrix: | ||
homeserver: "https://a.matrix.srv" | ||
user: "@ghibot:matrix.srv" | ||
password: "anotherGreatPassword456!" | ||
secretspath: "/home/thatsme/my/matrixsecrets/" | ||
device_id: "Ghi-Matrix-Bot" | ||
rooms: | ||
- "#room:matrix.srv" | ||
outlets: | ||
- irc | ||
- mastodon | ||
- "irc" | ||
- "mastodon" | ||
- "matrix" |
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
Oops, something went wrong.