5551f9d56f
Fix discord channel & category name clash. #860 ( #861 )
2019-07-14 19:53:09 +02:00
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.
2019-07-08 22:18:37 +02:00
76c7b69e4e
Support bulk deletions (discord)
2019-06-16 16:07:48 +02:00
1829dc3d9f
Allow messages from other bots (discord). Fixes #816
2019-05-01 18:10:31 +02:00
af00c34aac
Do not relay any bot messages (discord) ( #743 )
2019-02-28 12:59:52 +01:00
b09a73040f
Print errors as string instead of %#v ( #738 )
2019-02-26 17:21:23 +01:00
a7dd033c3b
Allow sending discriminator with Discord username ( #726 )
2019-02-22 14:28:27 +01:00
0bcb0b882f
Support join/leaves from discord. Closes #654 ( #721 )
2019-02-17 21:49:45 +01:00
e3cb665d92
Make discord user token work correctly (discord) #689
2019-01-19 20:39:58 +01:00
d99eacc2e1
Run go fmt
2019-01-14 19:41:32 +01:00
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 >
2019-01-14 19:27:49 +01:00
5193634a52
Use only one webhook if possible (discord) ( #681 )
2019-01-09 21:28:47 +01:00
46e2683995
Add file comment to webhook messages (discord). Fixes #358
2019-01-07 22:16:00 +01:00
492722af8b
Improve error reporting on failure to join Discord. Fixes #672 ( #680 )
2019-01-07 21:39:53 +01:00
f72d5de2d7
Disable some unparam checks (discord)
2018-12-07 23:48:00 +01:00
0365c0786a
Split Discord bridge in multiple files ( #632 )
2018-12-07 23:36:01 +01:00
df02f51c56
Fix regression on using server ID (discord). #619 #617
2018-11-28 23:50:40 +01:00
c6fd65d1d7
Limit discord username via webhook to 32 chars
2018-11-23 20:52:31 +01:00
ce21ba1545
Fix golint linter issues and enable it in CI ( #593 )
2018-11-15 20:43:43 +01:00
f8dc24bc09
Switch back go upstream bwmarrin/discordgo
...
Commit ffa9956c9b
got merged in.
2018-11-13 00:02:07 +01:00
399789811e
Make gocritic linter happy
2018-11-08 00:46:34 +01:00
0e2522279e
Clean up various stuff ( #508 )
...
* various cleanups
2018-11-07 20:36:50 +01:00
54adb0509e
Fix mentions cuttíng off all text after the mention (discord) ( #506 )
2018-09-29 20:02:59 +02:00
bd3a3b6eaf
Let webhook also replace mentions (discord). Closes #502
2018-09-22 22:15:19 +02:00
296428d53e
Fix Discord mentions by populating the nickMemberMap at connect ( #498 )
2018-09-17 21:25:06 +02:00
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
2018-09-12 22:30:14 +02:00
7f3cbcedc0
Use own forks for logrus-prefixed-formatter and discordgo
2018-08-06 21:11:13 +02:00
2597c9bfac
Clip too long messages sent to discord (discord). Closes #440
2018-07-22 00:28:17 +02:00
93307b57aa
Skip empty messages being sent with the webhook (discord). #469
2018-07-21 23:19:11 +02:00
ed062e0ce5
Add a space before url in file uploads (discord). Closes #461
2018-06-29 22:35:29 +02:00
a69ef8402b
Fix previous commit
2018-06-28 21:19:02 +02:00
8779f67d2d
Allow join-leave and topic changes to webhook (discord)
2018-06-28 21:14:31 +02:00
51327a4056
Reconnect on quit. (irc) See #431 ( #445 )
...
* potential fixes for #431
* go: fix formatting/gofmt/goreturns
2018-06-09 12:47:40 +02:00
a12a8d4fe2
Send mediaserver link to Discord in Webhook mode (discord) ( #405 )
2018-04-17 23:52:48 +02:00
b4aa637d41
Add channel debug (discord)
2018-03-17 22:56:58 +01:00
f2f1d874e1
Use viper (github.com/spf13/viper) for configuration
2018-03-04 23:52:14 +01:00
594d2155e3
Improve debug messages
2018-02-28 22:23:29 +01:00
2bac867382
Refactor using factory
2018-02-27 23:22:12 +01:00
73525a4bbc
Make gometalinter happier
2018-02-27 23:22:10 +01:00
d62f49d1fc
Skip events for webhook
2018-02-27 23:22:10 +01:00
3d8f15c20b
Refactor discord
2018-02-27 23:22:09 +01:00
d1227b5fc9
Use prefixed-formatter for better logging
2018-02-21 00:20:25 +01:00
6ea368c383
Move Sirupsen => sirupsen
2018-02-20 23:41:09 +01:00
a082b5a590
Remove unused code
2018-02-15 00:07:25 +01:00
bae9484df2
Use discordgo ContentWithMoreMentionsReplace (discord)
2018-02-14 23:05:50 +01:00
83c28cb857
Check for a valid WebhookURL (discord). Closes #367
2018-02-07 14:57:38 +01:00
80822b7fff
Send chat notification if media is too big to be re-uploaded to MediaServer. See #359
2018-02-03 01:11:11 +01:00
265457b451
Refactor and add MediaDownloadSize to General
2017-12-19 23:15:03 +01:00
36a800c3f5
Add support for comments from slack file uploads (slack)
2017-11-13 00:20:31 +01:00
7dbebd3ea7
Show error message when file upload fails (discord)
2017-11-04 14:47:14 +01:00