Commit Graph

42 Commits

Author SHA1 Message Date
Bray
1a4b21ccac
feat(bot): support threads for logs (#541) 2023-03-24 15:18:23 +00:00
spiral
f9abcc68c4
refactor(bot): separate MatchClear from ConfirmClear 2022-12-01 07:16:36 +00:00
spiral
b04b6e38d2
feat(bot): allow 'pk;logclean' in DMs 2022-06-21 11:13:24 -04:00
spiral
0ee0e75e02
feat: add 'pk;log show' command 2022-06-02 22:36:42 -04:00
spiral
df6a6fcf12
refactor: don't DI IDatabase and ModelRepository into bot command classes 2022-01-22 03:05:01 -05:00
spiral
56e266190f
fix: create guild config in log cleanup command 2021-12-06 04:02:25 -05:00
spiral
4450ae4214
feat: go through some TODOs 2021-11-26 22:02:58 -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
be5bf0cfb7
feat: misc pk;log channel changes
- show currently set log channel if no arguments are present
- throw error if someone tries to set the log channel to an invalid channel type
- throw error if bot is missing permissions to log in the new channel
2021-10-29 13:28:27 -04:00
spiral
92e45a07ff
refactor: add SqlKata for SQL generation, move connection handling into ModelRepository 2021-09-29 21:51:38 -04:00
spiral
ac2671452d
run dotnet format 2021-08-27 11:03:47 -04:00
Spectralitree
2898b3989a Add color to all lists 2021-03-28 19:22:31 +02:00
Ske
ef614d07c3 Do the Big Rename 2021-01-31 16:16:52 +01:00
Ske
2e0c30eb5d Port some more commands, mostly for embeds 2020-12-25 12:56:46 +01:00
Ske
47b16dc51b Port more things! 2020-12-24 14:52:44 +01:00
Ske
05334f0d25 Converted enough to send the system card 2020-12-22 16:55:13 +01:00
Ske
c69bea86df Fix log channel clear confirm 2020-10-23 12:18:40 +02:00
Ske
134829b263 Fix build error 2020-10-23 11:17:35 +02:00
dev-kittens
f50df670d7
Fix log channel clear matching 2020-10-17 16:43:59 -05:00
Ske
c7612df37e Major database refactor (again) 2020-08-29 13:46:27 +02:00
Ske
3996cd48c7 Ignore deleted channels when printing blacklist 2020-08-28 23:37:27 +02:00
acw0
d9c644ec0e Change "channel not found" error messages to be more ambiguous; also, put them in Errors instead of inline 2020-08-03 19:00:17 +02:00
Ske
666b21a08f Add category headers to blacklist channels 2020-07-05 13:16:21 +02:00
Ske
da9bfbb46d Redo blacklist list fetching/rendering 2020-07-05 13:08:18 +02:00
Ske
01d25ca391 Fix compiler warning in ShowBlacklisted 2020-07-05 13:01:38 +02:00
ariel w
224b653ee0
Add command to show current proxy blacklist (#189) 2020-07-05 12:54:27 +02:00
Ske
0598c53f62 Migrate guild objects to the patch system 2020-06-29 15:20:28 +02:00
Ske
378c49cb20 Remove 60+ (whew) SanitizeMentions() calls 2020-06-20 17:36:03 +02:00
Ske
90ac186183 Extract Database to interface 2020-06-13 19:36:43 +02:00
Ske
1c2ebdc658 Fix proxy blacklist command 2020-06-13 19:19:13 +02:00
Ske
c875c8af9f Various small fixes, setting guild config now works 2020-06-13 19:15:50 +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
ed511a6236 Refactor server config models/commands 2020-06-13 13:58:27 +02:00
Ske
ee9c87a29f Refactor permission utils to properly account for lack of channel access 2020-05-02 16:25:17 +02:00
Fennel
4e988867fe Refactor Unnecessary Enum Checks 2020-04-28 22:30:11 +02:00
Fennel
c99784b9dc Fix Build Errors 2020-04-28 22:30:11 +02:00
Ske
e9cc8ed424 Add logger bot cleanup support 2020-02-15 14:17:25 +01:00
Ske
6d5004bf54 Large refactor and project restructuring 2020-02-12 15:16:19 +01:00
Ske
125ea81ec3 Move command functions around 2020-02-01 13:03:44 +01:00