spiral
580b4dfe7b
feat(bot): add interaction logging info for debugging with Discord
2022-11-28 17:45:26 -05:00
spiral
bf7747ab34
feat: split out messages table from main database
2022-11-23 09:17:19 +00:00
spiral
9303dbb91e
refactor(bot): remove saving own user ID from ready event, rely on ID in config
2022-09-06 09:52:37 +00:00
spiral
c156951e19
fix(bot): incorrect conditional in logclean
2022-06-22 09:34:59 -04:00
spiral
5c055871e3
feat(bot): store command message info in redis
2022-06-19 20:28:55 -04:00
spiral
9848b88d5b
feat(bot): don't query db message context when running commands
2022-06-15 19:28:34 -04:00
spiral
7cb3a3ea0f
feat(bot): remove hacky fix for extremely slow system deletes
...
they are no longer extremely slow
2022-06-15 18:52:50 -04:00
spiral
f0b5749d5c
feat(bot): clean up / paginate help command
2022-06-14 19:05:15 -04:00
spiral
9dd3fba7e6
fix: show correct error in 'pk;debug proxy' when autoproxy is disabled for discord account
2022-06-13 14:52:07 -04:00
spiral
36e242986d
fix: fail-fast if we don't have Send Messages permissions in the current channel
2022-03-30 05:11:55 -04:00
spiral
7afba4ea95
chore: code cleanup (mostly whitespace / remove unused imports)
2022-03-30 04:36:22 -04:00
spiral
be89f907a0
feat: block running commands / proxying when system is being deleted
...
Large systems take way too long to delete, which causes any insert for that system to block a connection, which exhausts the connection pool
2022-03-23 21:32:18 -04:00
spiral
32a73eef09
feat: update to Discord API v10
2022-02-26 16:28:20 -05:00
spiral
89c44a3482
feat: cache Discord DM channels in database
2022-01-22 02:47:47 -05:00
spiral
4a739c2d61
feat: better error reporting settings
2022-01-21 00:10:51 -05:00
spiral
50a24f03a7
refactor: only pass shard ID to event handlers instead of full shard object
2022-01-14 18:39:03 -05:00
spiral
bf80dd0988
refactor: don't get user from cache in ReactionAdded
2022-01-14 15:29:15 -05:00
spiral
d58cc216c0
fix: unbreak error reporting for @mention prefix
2022-01-14 15:05:46 -05:00
spiral
34df19c551
fix: don't delete rows from messages table when the associated member is deleted
2022-01-11 09:43:55 -05:00
spiral
56d07e0f2d
feat: pk;config
2021-11-29 21:35:21 -05:00
spiral
1918c56937
feat: upgrade to .NET 6, refactor everything
2021-11-26 21:10:56 -05:00
spiral
7a5ba8246e
refactor: cache own user ID in IDiscordCache
...
- remove Cluster.User
- remove Cluster.Application (it was only being used as an alternative to Cluster.User for some reason)
- move Bot.PermissionsIn to DiscordCacheExtensions
2021-11-21 19:42:35 -05:00
spiral
0efaab6d95
refactor: don't use 'out' in IDiscordCache methods
...
this change is required for async cache (.NET doesn't support async ref/out params)
2021-11-18 13:11:02 -05:00
spiral
e7f36eb31f
feat: async cache
...
this breaks logging bot permissions to Sentry.
we haven't had a need to check those recently (permissions issues were because of broken cache), so this is fine for now
this should be re-added in the future though
2021-11-17 20:41:02 -05:00
spiral
343fafe9f0
feat: respect Discord permissions in pk;message and pk;edit
2021-11-10 23:46:16 -05:00
spiral
f897ce5a45
fix: re-enable error messages for explicit commands
2021-10-29 17:34:28 -04:00
spiral
92e45a07ff
refactor: add SqlKata for SQL generation, move connection handling into ModelRepository
2021-09-29 21:51:38 -04:00
spiral
d49b9f9bb7
ignore reactions added by the bot itself
2021-09-25 15:04:06 -04:00
spiral
42422f475b
feat: allow deleting *any* message in DMs
2021-09-13 02:13:36 -04:00
Ske
9bbe9df16d
Clean up a few database pool uses
2021-09-03 22:20:07 +02:00
spiral
ac2671452d
run dotnet format
2021-08-27 11:03:47 -04:00
spiral
52efb3c70a
fix: don't check for useless permission when deleting command messages
...
this allows for deleting command messages in DMs, where the bot does not have manage messages permissions
and just in general in channels where it doesn't have those permissions as well
2021-08-25 12:43:33 -04:00
Ske
b5ce541440
Avoid spamming failed proxy checks in edit handler logs
2021-08-12 02:52:42 +02:00
Ske
4c17ee3d89
Fix proxying in channels without message history + reduce proxy latency
2021-08-08 21:56:24 +02: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
a8727f474b
Allow any linked account to edit/delete messages sent by the same system
...
Closes #375 .
2021-07-27 11:39:37 -04:00
Ske
1f2b9f998d
Preliminary support for APIv9 and threads
2021-07-15 12:41:19 +02:00
spiral
afd8983abe
fix the rest of the conditionals
2021-07-08 12:45:59 -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
Ske
9e9eaa7450
Replace ping link embed with jump button
2021-06-11 18:17:08 +02:00
Ske
41f1c58a9f
Merge branch 'new-shard-handler'
2021-06-08 10:20:59 +02:00
Ske
118f2d49a6
WIP new shard implementation
2021-06-08 10:19:54 +02:00
Ske
d7c0592947
Add preliminary support for buttons
2021-05-26 22:27:52 +02:00
Ske
aa2a234f8d
Fix permission error on message edit handler
...
Signed-off-by: Ske <voltasalt@gmail.com>
2021-05-03 10:29:22 +02:00
spiral
cf93b8b3cc
fix: don't try matching commands if there is nothing to match
2021-05-01 19:18:04 +01:00
spiral
0acadee803
don't cache the full message
2021-03-22 07:17:10 +00:00
spiral
a7189fab8c
Fix handling replies in edited messages
2021-03-22 07:07:33 +00:00
Ske
3196f60093
Fix error on DMing with no permission
2021-03-18 11:38:28 +01:00
Ske
ccd12df996
Fix removing original reaction
2021-01-31 17:56:44 +01:00