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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user