Commit Graph

48 Commits (d2caea70a2761064d937fd836a54d75a12bf73b8)

Author SHA1 Message Date
Wim e7fcb25107 Add a charset option (irc). Closes #247 7 years ago
Wim 7c773ebae0 Add support for editing messages across bridges. Currently mattermost/discord.
Our Message type has an extra ID field which contains the message ID of the specific bridge.
The Send() function has been modified to return a msg ID (after the message to that specific
bridge has been created).

There is a lru cache of 5000 entries (message IDs). All in memory, so editing messages
will only work for messages the bot has seen.

Currently we go out from the idea that every message ID is unique, so we don't keep
the ID separate for each bridge. (we do for each gateway though)

If there's a new message from a bridge, we put that message ID in the LRU cache as key
and the []*BrMsgID as value (this slice contains the message ID's of each bridge that
received the new message)

If there's a new message and this message ID already exists in the cache, it must be
an updated message. The value from the cache gets checked for each bridge and if there
is a message ID for this bridge, the ID will be added to the Message{} sent to that
bridge. If the bridge sees that the ID isn't empty, it'll know it has to update the
message with that specific ID instead of creating a new message.
7 years ago
Wim 28710d0bc7 Allow a webhookurl per channel (discord). #239 7 years ago
anon724 67905089ba Add UseUserName option (discord) (#234) 7 years ago
Wim f8e6a69d6e Add action support for slack,mattermost,irc,gitter,matrix,xmpp,discord. #199 7 years ago
Wim 83ef61287e Refactor. Add tests 7 years ago
Wim 6dee988b76 Fix megacheck / go vet issues 7 years ago
Wim 2338c69d40 Add UseInsecureURL option (telegram) 7 years ago
Wim 830361e48b Deprecate URL,useAPI,BindAddress (slack,mattermost,rocketchat) 7 years ago
Sacha Aury - Wolfman c17512b7ab Add webhook posting mode for discord. (#204)
Using it implies to configure a Webhook on discord and set the parameter :
- WebhookURL (New parameter, discord-specific)

Discord API does not allow to change the name of the user posting, but webhooks does.
This makes the relay much more elegant, even if we might lose some more advanced features.

Signed-off-by: saury07 <sacha.aury@gmail.com>
7 years ago
Wim 1b837b3dc7 Add ShowEmbeds option (discord). #202 7 years ago
Wim 276ac840aa Add initial steam support 7 years ago
Wim 2ddc4f7ae9 Add UserID to each message. Closes #200 7 years ago
Wim 25b1af1e11 Add option IgnoreMessages to ignore messages based on regexp. (all). Closes #70 7 years ago
Wim ad3cb0386b Add token authentication (api) 7 years ago
Wim 2eecaccd1c Change to lowercase JSON keys (api) 7 years ago
Wim 5f30a98bc1 Add gateway name to messages 7 years ago
Wim 9d9cb32f4e Limit message length (irc). Closes #179 7 years ago
Wim 2888fd64b0 Add UseFirstName option (telegram). Closes #144 7 years ago
Wim 4036d4459b Add NoHomeServerSuffix. Option to disable homeserver on username (matrix). Closes #160. 7 years ago
Wim 02612c0061 Add support for sending edited messages 8 years ago
Wim b469c8ddbd Rejoin channel when kicked (irc). Closes #146 8 years ago
Wim a16ad8bf3b Reuse connection when using same bridge with another gateway. See #87 8 years ago
Wim 2e4d58cb92 Refactor 8 years ago
Wim 32bbab8518 Do not use HTML parsemode by default. Set MessageFormat="HTML" to use it. (telegram) Closes #126 8 years ago
Wim c5cfbc2297 Add matrix support 8 years ago
Wim 73f01ad8d8 Add REST API support 8 years ago
Wim 163f55f9c2 Refactor to handle disconnects/reconnects better.
Now try to reconnect every 60 seconds until forever.
8 years ago
Wim 7685fe1724 Add channel key support (irc). Closes #27 8 years ago
Wim fee159541f Add initial Rocket.Chat support 8 years ago
Wim e1641b2c2e Add support for RemoteNickFormat in general configuration 8 years ago
Wim e0e1e4be80 Add gateway.inout config for bidirectional bridges. Closes #85 8 years ago
Wim cd18d89894 Add initial telegram support 8 years ago
Wim 449ed31e25 Fix ShowJoinPart from irc bridge. Closes #72 8 years ago
Wim 99d130d1ed Refactor 8 years ago
Wim a3dd0f1345 Add support for using avatars from discord,slack and gitter in slack 8 years ago
Wim 2dbe0eb557 Add support for dynamic IconURL (slack). Closes #43 8 years ago
Wim be513622ac Add anti-flooding settings (irc). See #40 8 years ago
Wim 92d9db5a2d Override config from environment. See #50
Expects uppercase environment variables of MATTERBRIDGE_PROTOCOL_ACCOUNT_KEY="value"
e.g. you can override this config

[mattermost]
    [mattermost.work]
    Team="yourteam"
    Login="yourlogin"
    Password="yourpass"

by using
MATTERBRIDGE_MATTERMOST_WORK_TEAM="newteam"
MATTERBRIDGE_MATTERMOST_WORK_LOGIN="newlogin"
MATTERBRIDGE_MATTERMOST_WORK_PASSWORD="newpassword"
8 years ago
Wim 1e84afbd90 Rename discord guild to server. 8 years ago
Wim fff6f08cb6 Add samechannel gateway. See #35 8 years ago
Wim fd756c5332 Use specified config file 8 years ago
Wim a0b84beb9b Add Discord support 8 years ago
Wim 7baf386ede Refactor for more flexibility
* Move from gcfg to toml configuration because gcfg was too restrictive
* Implemented gateway which has support multiple in and out bridges.
* Allow for bridging the same bridges, which means eg you can now bridge between multiple mattermosts.
* Support multiple gateways
8 years ago
Wim b30e85836e Add Slack support 8 years ago
Wim 12389d602e Add Gitter support 8 years ago
Wim 9cb3413d9c Add Enable per section (protocol) instead of in general section 8 years ago
Wim ff94796700 Refactor bridge. Allows bridging between every protocol 8 years ago