Commit Graph

88 Commits (5551f9d56f2270c58738d3d43b3f4ef82507a3b9)

Author SHA1 Message Date
Qais Patankar 5551f9d56f Fix discord channel & category name clash. #860 (#861) 5 years ago
Qais Patankar e60949ff3f Support webhook message deletions (discord) (#853)
* Support webhook message deletions (discord)

Messages sent via webhook can now be deleted. It seems it can do this
without any special permissions.

This copies discordgo.WebhookExecute and makes it support the returning
of discordgo.Message.

A pull request has been sent upstream, so we should use that if
@bwmariin accepts the pull request:

https://github.com/bwmarrin/discordgo/pull/663

Changes in behaviour (webhook mode only):
- Previously messages *edited* on other platforms would just be
retransmitted as a brand new message to Discord.
- Message *edits* will now be ignored.
- Debug: message edits will now print out a "permission error".

In the future it may be good to send an "message edited" react to those
webhook messages, so at least people know that the message was edited on
other platforms. (Even though it can't actually show the new message.)

Alternatively, message edits could just send a brand new message with a
link back to the old one. This is a little ugly but it would ensure that
Discord users are able to see the edited message. These "message edit
notifications" would be sent from the bot user (not from a webhook), so
we could edit the "edit notification" if subsequent edits to the
original message are made.
5 years ago
Qais Patankar 76c7b69e4e Support bulk deletions (discord) 5 years ago
Wim 1829dc3d9f Allow messages from other bots (discord). Fixes #816 5 years ago
Wim af00c34aac
Do not relay any bot messages (discord) (#743) 5 years ago
Wim b09a73040f
Print errors as string instead of %#v (#738) 5 years ago
Declan Hoare a7dd033c3b Allow sending discriminator with Discord username (#726) 5 years ago
Wim 0bcb0b882f
Support join/leaves from discord. Closes #654 (#721) 5 years ago
Wim e3cb665d92 Make discord user token work correctly (discord) #689 6 years ago
Wim d99eacc2e1 Run go fmt 6 years ago
Zomboy Alfrir 62e55214fc Allow to bridge non-bot Discord users (discord) (#689)
If you prefix a token with `User ` it'll treat is as a user token.

Co-Authored-By: zomboy-alfrir <zomboy@dancodes.com.ar>
6 years ago
James Nylen 5193634a52 Use only one webhook if possible (discord) (#681) 6 years ago
Wim 46e2683995 Add file comment to webhook messages (discord). Fixes #358 6 years ago
James Nylen 492722af8b Improve error reporting on failure to join Discord. Fixes #672 (#680) 6 years ago
Wim f72d5de2d7 Disable some unparam checks (discord) 6 years ago
Duco van Amstel 0365c0786a Split Discord bridge in multiple files (#632) 6 years ago
Wim df02f51c56 Fix regression on using server ID (discord). #619 #617 6 years ago
Wim c6fd65d1d7 Limit discord username via webhook to 32 chars 6 years ago
Duco van Amstel ce21ba1545 Fix golint linter issues and enable it in CI (#593) 6 years ago
Wim f8dc24bc09 Switch back go upstream bwmarrin/discordgo
Commit ffa9956c9b got merged in.
6 years ago
Wim 399789811e Make gocritic linter happy 6 years ago
David Hill 0e2522279e Clean up various stuff (#508)
* various cleanups
6 years ago
NikkyAI 54adb0509e Fix mentions cuttíng off all text after the mention (discord) (#506) 6 years ago
Wim bd3a3b6eaf Let webhook also replace mentions (discord). Closes #502 6 years ago
NikkyAI 296428d53e Fix Discord mentions by populating the nickMemberMap at connect (#498) 6 years ago
Jerry Heiselman a431a4fa04 Replace @... string with user mention if match found (discord) (#492). Closes #460
* Added check for @-mention pattern and replacing it with a user with a matching Nick on incoming messages
6 years ago
Wim 7f3cbcedc0 Use own forks for logrus-prefixed-formatter and discordgo 6 years ago
Wim 2597c9bfac Clip too long messages sent to discord (discord). Closes #440 6 years ago
Wim 93307b57aa Skip empty messages being sent with the webhook (discord). #469 6 years ago
Wim ed062e0ce5 Add a space before url in file uploads (discord). Closes #461 6 years ago
Wim a69ef8402b Fix previous commit 6 years ago
Wim 8779f67d2d Allow join-leave and topic changes to webhook (discord) 6 years ago
Liam Stanley 51327a4056 Reconnect on quit. (irc) See #431 (#445)
* potential fixes for #431
* go: fix formatting/gofmt/goreturns
6 years ago
ValdikSS a12a8d4fe2 Send mediaserver link to Discord in Webhook mode (discord) (#405) 6 years ago
Wim b4aa637d41 Add channel debug (discord) 6 years ago
Wim f2f1d874e1 Use viper (github.com/spf13/viper) for configuration 6 years ago
Wim 594d2155e3 Improve debug messages 6 years ago
Wim 2bac867382 Refactor using factory 6 years ago
Wim 73525a4bbc Make gometalinter happier 6 years ago
Wim d62f49d1fc Skip events for webhook 6 years ago
Wim 3d8f15c20b Refactor discord 6 years ago
Wim d1227b5fc9 Use prefixed-formatter for better logging 6 years ago
Wim 6ea368c383 Move Sirupsen => sirupsen 6 years ago
Wim a082b5a590 Remove unused code 6 years ago
Wim bae9484df2 Use discordgo ContentWithMoreMentionsReplace (discord) 6 years ago
Wim 83c28cb857 Check for a valid WebhookURL (discord). Closes #367 7 years ago
Wim 80822b7fff Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 7 years ago
Wim 265457b451 Refactor and add MediaDownloadSize to General 7 years ago
Wim 36a800c3f5 Add support for comments from slack file uploads (slack) 7 years ago
Wim 7dbebd3ea7 Show error message when file upload fails (discord) 7 years ago