Commit Graph

30 Commits

Author SHA1 Message Date
Iris System 6b14c50f09 fix(bot): only allow proxying in known-supported channel types
This is so that new channel types added by Discord (that may or may not
support the features we need for proxying to work) don't throw piles of
error codes at users when they try to proxy.
2023-06-28 14:38:50 +12:00
Iris System 66544b9d40 fix(bot): make proxy/log blacklists work properly with threads
Handling of both blacklists was inconsistent when dealing with threads:
- proxy blacklist of root channel blacklists all threads
- log blacklist of root channel _did not apply_ to threads
- couldn't proxy blacklist threads while leaving root channel proxyable

This change fixes the inconsistencies:
- proxy _and_ log blacklist of root channel affects all threads
- now able to individually proxy/log blacklist threads, with root
  channel unaffected
2023-05-10 13:16:16 +12:00
Jake Fulmine 8187aa05b7 feat(bot): add proxy error config (#544) 2023-03-26 11:42:47 +13:00
spiral 74d621455a fix(bot): correct error for pk;debug proxy pointing to a DM channel message 2022-12-15 00:57:22 +00:00
spiral 07845edee6 Merge remote-tracking branch 'origin/main' 2022-11-24 06:32:59 +00:00
spiral bf7747ab34 feat: split out messages table from main database 2022-11-23 09:17:19 +00:00
Katrix 4f0236d766 feat(bot): Case insensitive proxy tags matching (#490) 2022-11-23 21:48:24 +13: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
Iris System 1ea37696e3 fix(bot): check bot perms for UseExternalEmojis instead of @/everyone 2022-08-05 09:42:01 +12: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 982812333b feat: rewrite database schema for localized autoproxy 2022-03-21 23:43:33 -04:00
spiral 8909330db2 feat: aggregate cluster statistics and send to influx with scheduled tasks worker 2022-03-14 23:33:22 -04:00
spiral ae543b9c18 feat: fetch from REST instead of cache for cross-cluster lookups 2022-03-09 20:06:53 -05:00
spiral df6a6fcf12 refactor: don't DI IDatabase and ModelRepository into bot command classes 2022-01-22 03:05:01 -05:00
spiral e42002b754 fix: add missing return in pk;debug proxy 2022-01-21 00:00:26 -05:00
spiral 0d42328694 fix: check for ReadMessageHistory in pk;debug permissions 2022-01-07 14:22:44 -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 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
Katrix b998636cbe feat: add -raw flag to pk;msg (#399) 2021-10-29 16:42:10 -04:00
spiral 92e45a07ff refactor: add SqlKata for SQL generation, move connection handling into ModelRepository 2021-09-29 21:51:38 -04:00
spiral fa66fbe247 move admin check to ContextChecksExt, allow pk;debug proxy for staff in support server 2021-09-26 20:42:08 -04:00
spiral 07b12f39b0 aaaaaaa 2021-09-13 08:42:51 -04:00
spiral d005358acc feat: add channel-specific permcheck 2021-09-13 04:21:03 -04:00
spiral ac2671452d run dotnet format 2021-08-27 11:03:47 -04:00
spiral 82544cf9ce tweak: don't expose hidden channel count in pk;permcheck 2021-08-25 15:58:55 -04:00
Alyx c7fcf60fbf feat: add checking for Use External Emoji permissions in pk;permcheck 2021-08-25 15:04:08 -04:00
spiral b46561cb0a refactor: move some commands out of Misc 2021-08-25 14:36:13 -04:00