diff --git a/EllieBot.sln b/EllieBot.sln index f34ad17..7f96e39 100644 --- a/EllieBot.sln +++ b/EllieBot.sln @@ -13,7 +13,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution migrate.ps1 = migrate.ps1 README.md = README.md remove-migrations.ps1 = remove-migrations.ps1 - TODO.md = TODO.md EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EllieBot", "src\EllieBot\EllieBot.csproj", "{4D9001F7-B3E8-48FE-97AA-CFD36DA65A64}" diff --git a/src/EllieBot/Modules/Utility/AfkService.cs b/src/EllieBot/Modules/Utility/AfkService.cs index d41169b..2ea269b 100644 --- a/src/EllieBot/Modules/Utility/AfkService.cs +++ b/src/EllieBot/Modules/Utility/AfkService.cs @@ -74,7 +74,7 @@ public sealed class AfkService : IEService, IReadyExecutor private Task TryTriggerAfkMessage(SocketMessage arg) { - if (arg.Author.IsBot) + if (arg.Author.IsBot || arg.Author.IsWebhook) return Task.CompletedTask; if (arg is not IUserMessage uMsg || uMsg.Channel is not ITextChannel tc) @@ -126,9 +126,10 @@ public sealed class AfkService : IEService, IReadyExecutor { var st = SmartText.CreateFrom(msg); - st = "The user is AFK: " + st; + st = $"The user you've pinged ({arg.Author}) is AFK: " + st; var toDelete = await _mss.Response(arg.Channel) + .User(arg.Author) .Message(uMsg) .Text(st) .Sanitize(false)