Commit Graph

48 Commits

Author SHA1 Message Date
spiral
ac2671452d
run dotnet format 2021-08-27 11:03:47 -04:00
spiral
4c97a9daf6
hopefully a fix for #384 2021-08-15 00:50:31 -04:00
Ske
4c17ee3d89 Fix proxying in channels without message history + reduce proxy latency 2021-08-08 21:56:24 +02:00
spiral
9fd4f327e0
refactor: clean up message logging 2021-08-04 00:41:51 -04:00
spiral
b9f73cadb7
feat: proxy debug command
Co-authored-by: Spectralitree <72747870+Spectralitree@users.noreply.github.com>
2021-08-03 21:06:14 -04:00
spiral
25f96dd920
Fix Discord merging webhook messages with same username
Closes #33.
2021-08-03 13:44:22 -04:00
spiral
dcc15dc847
Move mediaproxy URL rewriting to ProxyService
This shows full size avatars in API / cards.

Also, rewrite URLs currently stored with media.discordapp.net "back" to
cdn.discordapp.com before sending them to users.
2021-08-01 12:51:54 -04:00
Ske
1f2b9f998d Preliminary support for APIv9 and threads 2021-07-15 12:41:19 +02:00
spiral
a8e6a53404
! 2021-07-08 10:57:53 -04:00
spiral
e620e30c10
Fix channel checks missing GuildNews
The log channel / logclean checks are left as-is; hopefully nobody is
using an announcements channel for their logs?
2021-07-08 09:17:35 -04:00
Zoe Martin
131ee8d87c
fix: improved url regex 2021-06-25 15:14:30 +02:00
Zoe Martin
e9da1a80b7
fix: issues with urls being cut in half at the end of replies and "…" unnecessarily being appended at the end 2021-06-25 15:05:25 +02:00
Zoe Martin
d1c6794330
fix: inserting closing angle bracket in reply when not present in original issue 2021-06-25 13:15:25 +02:00
Zoe Martin
2aac97d2a0
fix: extended fix for emotes being cut off in replies to all mentions 2021-06-25 12:54:49 +02:00
Zoe Martin
b156f6a9cb
fix: emotes being cut off in replies 2021-06-25 12:34:44 +02:00
spiral
272a3430a6
move message length check *after* proxy members check 2021-06-14 11:31:14 -04:00
spiral
c75451a572
add temporary info message about increased message character limit 2021-06-12 14:45:21 +00:00
spiral
653c7b22bd
remove random console log 2021-05-01 19:32:37 +01:00
spiral
517abf7ff1
feat: show member color in reply embed 2021-05-01 19:20:00 +01:00
Ske
80c572f594 Fix various bugs and regressions 2021-01-31 16:02:34 +01:00
Ske
04109a133f Merge branch 'main' into newdiscord 2021-01-15 10:35:20 +01:00
Ske
e0cc74a712 Don't attempt to create a reply embed when message fetching fails 2021-01-14 03:22:04 +01:00
spiral
44fa097900
Force PNG image format (remove animations in embeds) 2020-12-28 04:47:14 +00:00
Ske
a6fbd869be Initial commit, basic proxying working 2020-12-22 13:15:26 +01:00
Ske
c3f6becea4 Fix truncated spoiler tags in replies 2020-12-21 03:16:48 +01:00
Ske
4e5d02e1a4 Reformat replies 2020-12-20 16:58:52 +01:00
Ske
e2d76fe809 Fix reply formatting on mobile 2020-12-20 12:16:14 +01:00
Ske
df243d4220 Add info embed to proxied replies 2020-12-20 11:38:26 +01:00
spiral
277b001050
Clean up name length check method 2020-11-26 00:04:40 -05:00
spiral
ea4d93208e
Allow single character proxy name by adding invisible character 2020-11-26 00:01:19 -05:00
spiral
3ef1496383
Fix proxying in announcement channels 2020-11-25 17:13:31 -05:00
Ske
c0c4871f0b Fix cache error using log channel 2020-11-15 15:07:20 +01:00
Ske
27c9e54f17 Delete proxied message if the trigger message gets deleted by other means 2020-11-15 14:34:49 +01:00
Ske
c7612df37e Major database refactor (again) 2020-08-29 13:46:27 +02:00
Ske
147e1fdc1a Potentially fix NRE in ProxyService 2020-08-25 23:26:41 +02:00
Ske
ba48f22ad2 Break proxied links if the sender doesn't have embed permission 2020-07-10 16:35:52 +02:00
Ske
472e556ef0 Pass proper allowed_mentions when sending webhook messages 2020-06-28 20:26:14 +02:00
Ske
2c35649ef0 Use AllowedMentions to disable mentions everywhere by default 2020-06-20 17:33:10 +02:00
Ske
ca882dba73 Add more performance metrics 2020-06-14 22:19:12 +02:00
Ske
c780781184 Remove unused imports 2020-06-13 23:12:44 +02:00
Ske
2702c45b4f General bits of cleanup 2020-06-13 22:20:24 +02:00
Ske
4b69ef806a Properly support KeepProxy after refactor 2020-06-13 22:16:04 +02:00
Ske
90ac186183 Extract Database to interface 2020-06-13 19:36:43 +02:00
Ske
e176ccbab5 Several more database-y refactors
- DbConnectionFactory renamed to "Database", will now be the primary entry point for DB stuff
- Created IPKConnection interface mostly containing async extensions to IDbConnection, use this going forward
- Reworked the Connection/Command wrappers (that have performance/logging extensions)
- Probably more stuff that I forgot???
2020-06-13 18:31:20 +02:00
Ske
729930a562 Move system tag/icon from ProxyMember to MessageContent 2020-06-12 23:30:10 +02:00
Ske
3d62a0d33c Split message/proxy data up in MessageContext and ProxyMember 2020-06-12 23:13:21 +02:00
Ske
ba441a15cc Too many refactors in one:
- Allowed adding ephemeral(ish) views and functions
- Moved message_count to a concrete database field
- Moved most proxy logic to a stored procedure
- Moved database files around and refactored schema manager
2020-06-12 20:29:50 +02:00
Ske
49acc4d9e2 Refactor proxy handling code
- Move reaction handlers to the ReactionAdded event instead of
  ProxyService
- Split tag matching off into ProxyTagParser
- Split autoproxy matching off into Autoproxier
- General cleanup and simplification
2020-06-11 23:22:53 +02:00