Bray
1a4b21ccac
feat(bot): support threads for logs ( #541 )
2023-03-24 15:18:23 +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
9848b88d5b
feat(bot): don't query db message context when running commands
2022-06-15 19:28:34 -04:00
Ske
51fb561841
fix: a couple more minor reproxy fixes
2022-06-06 00:59:53 +02:00
spiral
ae543b9c18
feat: fetch from REST instead of cache for cross-cluster lookups
2022-03-09 20:06:53 -05:00
spiral
32a73eef09
feat: update to Discord API v10
2022-02-26 16:28:20 -05:00
spiral
8e119d0d42
refactor: don't pass through channel ID to LogMessage
2022-01-14 15:12:10 -05:00
spiral
df9e7c3eb9
fix: correctly check log blacklist for messages edited outside the target guild
2022-01-14 15:11:42 -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
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
92e45a07ff
refactor: add SqlKata for SQL generation, move connection handling into ModelRepository
2021-09-29 21:51:38 -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
9fd4f327e0
refactor: clean up message logging
2021-08-04 00:41:51 -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
spiral
1f0c75d677
Add logging message edits
2021-05-07 17:35:09 +01:00
Ske
80c572f594
Fix various bugs and regressions
2021-01-31 16:02:34 +01:00
Ske
f6fb8204bb
Add embed builder, some more ported classes
2020-12-23 02:19:02 +01:00
Ske
05334f0d25
Converted enough to send the system card
2020-12-22 16:55:13 +01:00
Ske
a6fbd869be
Initial commit, basic proxying working
2020-12-22 13:15:26 +01:00
Ske
c0c4871f0b
Fix cache error using log channel
2020-11-15 15:07:20 +01:00
Ske
537783dd96
Fix permission check for log channels
2020-11-08 18:52:50 +01:00
Ske
b6dbc82abe
Clean up imports
2020-10-23 12:20:44 +02:00
Ske
c7612df37e
Major database refactor (again)
2020-08-29 13:46:27 +02:00
Ske
bed43379cf
Add additional (debug) logging to (proxy) logger
2020-08-12 21:52:42 +02:00
Ske
c87e67245d
Create GetXXX utils wrapping try blocks
2020-07-02 18:29:04 +02:00
Ske
3207fcff1b
Fix guild ID row name in query
2020-06-26 15:07:51 +02:00
Ske
bb75519f6b
Properly handle unauthorized log channel access
2020-06-25 09:14:05 +02:00
Ske
2c35649ef0
Use AllowedMentions to disable mentions everywhere by default
2020-06-20 17:33:10 +02:00
Ske
c780781184
Remove unused imports
2020-06-13 23:12:44 +02:00
Ske
c927967c3b
Migrate GetSystemById
2020-06-13 19:42: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
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
ariel w
82886fe9e2
Move discord links to new domain ( #180 )
2020-06-11 21:12:43 +02:00
Ske
720755844f
Rename BotHasPermission to a more descriptive name
2020-05-02 15:29:36 +02:00
Ske
e133bd657d
Remove log channels if they don't exist
2020-05-01 16:36:21 +02:00
Ske
23cf06df4c
Port some things, still does not compile
2020-04-17 23:10:01 +02:00
Ske
8d3be79d33
Don't attempt to send log messages if the bot doesn't have permissions
2020-02-22 01:54:10 +01:00
Ske
6d5004bf54
Large refactor and project restructuring
2020-02-12 15:16:19 +01:00
Ske
73b2631280
Optimize database queries for proxy filtering
2019-12-28 12:00:52 +01:00
Ske
378cba09e5
Add channel blacklists for logging and proxying
...
Necessary database migrations for this commit:
alter table servers add column log_blacklist bigint[] not null default array[]::bigint[];
alter table servers add column blacklist bigint[] not null default array[]::bigint[];
2019-11-03 19:15:50 +01:00
Ske
46672d264c
Refactor log channel storage
2019-10-27 23:01:20 +01:00
xBelladonna
fabf772085
Return original message ID to log channel
...
Logs the original (deleted) message's ID in addition to the proxied message's ID to the log channel if configured
2019-08-08 11:01:36 +02:00
Ske
b85c79c57b
Expand logging capability
2019-07-19 02:29:08 +02:00
Ske
961bfe9094
Add basic logging framework
2019-07-18 17:13:42 +02:00