summaryrefslogtreecommitdiffstats
path: root/bridge/discord/discord.go
Commit message (Collapse)AuthorAgeFilesLines
* Print errors as string instead of %#v (#738)Wim2019-02-261-3/+3
|
* Support join/leaves from discord. Closes #654 (#721)Wim2019-02-171-0/+2
|
* Make discord user token work correctly (discord) #689Wim2019-01-191-2/+2
|
* Run go fmtWim2019-01-141-3/+3
|
* Allow to bridge non-bot Discord users (discord) (#689)Zomboy Alfrir2019-01-141-0/+5
| | | | | | If you prefix a token with `User ` it'll treat is as a user token. Co-Authored-By: zomboy-alfrir <zomboy@dancodes.com.ar>
* Use only one webhook if possible (discord) (#681)James Nylen2019-01-091-8/+42
|
* Add file comment to webhook messages (discord). Fixes #358Wim2019-01-071-1/+7
|
* Improve error reporting on failure to join Discord. Fixes #672 (#680)James Nylen2019-01-071-1/+15
|
* Split Discord bridge in multiple files (#632)Duco van Amstel2018-12-071-257/+52
|
* Fix regression on using server ID (discord). #619 #617Wim2018-11-281-1/+2
|
* Limit discord username via webhook to 32 charsWim2018-11-231-0/+4
|
* Fix golint linter issues and enable it in CI (#593)Duco van Amstel2018-11-151-5/+5
|
* Switch back go upstream bwmarrin/discordgoWim2018-11-131-1/+1
| | | | Commit https://github.com/bwmarrin/discordgo/commit/ffa9956c9b41e8e2a10c26a254389854e016b006 got merged in.
* Make gocritic linter happyWim2018-11-081-1/+1
|
* Clean up various stuff (#508)David Hill2018-11-071-4/+11
| | | * various cleanups
* Fix mentions cuttíng off all text after the mention (discord) (#506)NikkyAI2018-09-291-1/+1
|
* Let webhook also replace mentions (discord). Closes #502Wim2018-09-221-0/+1
|
* Fix Discord mentions by populating the nickMemberMap at connect (#498)NikkyAI2018-09-171-1/+19
|
* Replace @... string with user mention if match found (discord) (#492). ↵Jerry Heiselman2018-09-121-0/+46
| | | | | | Closes #460 * Added check for @-mention pattern and replacing it with a user with a matching Nick on incoming messages
* Use own forks for logrus-prefixed-formatter and discordgoWim2018-08-061-1/+1
|
* Clip too long messages sent to discord (discord). Closes #440Wim2018-07-221-0/+6
|
* Skip empty messages being sent with the webhook (discord). #469Wim2018-07-211-0/+4
|
* Add a space before url in file uploads (discord). Closes #461Wim2018-06-291-1/+1
|
* Fix previous commitWim2018-06-281-1/+1
|
* Allow join-leave and topic changes to webhook (discord)Wim2018-06-281-1/+1
|
* Reconnect on quit. (irc) See #431 (#445)Liam Stanley2018-06-091-3/+4
| | | | | * potential fixes for #431 * go: fix formatting/gofmt/goreturns
* Send mediaserver link to Discord in Webhook mode (discord) (#405)ValdikSS2018-04-171-0/+6
|
* Add channel debug (discord)Wim2018-03-171-0/+3
|
* Use viper (github.com/spf13/viper) for configurationWim2018-03-041-18/+19
|
* Improve debug messagesWim2018-02-281-6/+6
|
* Refactor using factoryWim2018-02-271-26/+19
|
* Make gometalinter happierWim2018-02-271-21/+21
|
* Skip events for webhookWim2018-02-271-0/+4
|
* Refactor discordWim2018-02-271-64/+82
|
* Use prefixed-formatter for better loggingWim2018-02-211-2/+2
|
* Move Sirupsen => sirupsenWim2018-02-201-1/+1
|
* Remove unused codeWim2018-02-151-18/+0
|
* Use discordgo ContentWithMoreMentionsReplace (discord)Wim2018-02-141-4/+12
|
* Check for a valid WebhookURL (discord). Closes #367Wim2018-02-071-0/+3
|
* Send chat notification if media is too big to be re-uploaded to MediaServer. ↵Wim2018-02-031-0/+4
| | | | See #359
* Refactor and add MediaDownloadSize to GeneralWim2017-12-191-8/+3
|
* Add support for comments from slack file uploads (slack)Wim2017-11-131-1/+2
|
* Show error message when file upload fails (discord)Wim2017-11-041-3/+5
|
* Make megacheck happy againWim2017-11-031-6/+4
|
* Add support to upload files to discord, from bridges with private urls like ↵Wim2017-11-031-0/+18
| | | | slack/mattermost/telegram. (discord)
* Add support for deleting messages across bridges.Wim2017-09-111-0/+20
| | | | | | | | | | | | Currently fully support mattermost,slack and discord. Message deleted on the bridge or received from other bridges will be deleted. Partially support for Gitter. Gitter bridge will delete messages received from other bridges. But if you delete a message on gitter, this deletion will not be sent to other bridges (this is a gitter API limitation, it doesn't propogate edits or deletes via the API)
* Add support for editing messages across bridges. Currently mattermost/discord.Wim2017-08-281-15/+22
| | | | | | | | | | | | | | | | | | | | | | 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.
* Modify Send() to return also a message idWim2017-08-271-3/+3
|
* Swap token/id. Also check for default webhookURL in isWebhookID (discord)Wim2017-08-121-3/+9
|
* Allow a webhookurl per channel (discord). #239Wim2017-08-121-21/+63
|