mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
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
This commit is contained in:
parent
4a4d980349
commit
49acc4d9e2
13 changed files with 492 additions and 395 deletions
|
|
@ -82,6 +82,10 @@ namespace PluralKit.Bot
|
|||
.As<ISentryEnricher<MessageBulkDeleteEventArgs>>()
|
||||
.As<ISentryEnricher<MessageReactionAddEventArgs>>()
|
||||
.SingleInstance();
|
||||
|
||||
// Proxy stuff
|
||||
builder.RegisterType<Autoproxier>().AsSelf().SingleInstance();
|
||||
builder.RegisterType<ProxyTagParser>().AsSelf().SingleInstance();
|
||||
|
||||
// Utils
|
||||
builder.Register(c => new HttpClient
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue