Proxy edited messages if the message is the last one in the channel, and the edit introduces proxy tags where there were none previously

This commit is contained in:
Ske
2020-02-12 14:21:48 +01:00
parent 30ed293dc6
commit 1386e6743b
3 changed files with 59 additions and 4 deletions

View File

@@ -2,14 +2,11 @@ using System;
using System.Net.Http;
using Autofac;
using Autofac.Extensions.DependencyInjection;
using Discord;
using Discord.Rest;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
using PluralKit.Bot.Commands;
using Sentry;
@@ -68,6 +65,7 @@ namespace PluralKit.Bot
builder.RegisterType<ShardInfoService>().AsSelf().SingleInstance();
builder.RegisterType<CpuStatService>().AsSelf().SingleInstance();
builder.RegisterType<PeriodicStatCollector>().AsSelf().SingleInstance();
builder.RegisterType<LastMessageCacheService>().AsSelf().SingleInstance();
// Sentry stuff
builder.Register(_ => new Scope(null)).AsSelf().InstancePerLifetimeScope();