mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
snitch on people adding/removing images to the bot (#13)
* image preview when adding to carrousel * spelling is hard * snitch more * fuck yoursel
This commit is contained in:
committed by
GitHub
parent
5212f7cd76
commit
6b86b3ae6c
@@ -46,7 +46,9 @@ public class AddImageCommand : ICommand
|
||||
|
||||
await db.Images.AddAsync(new ImageDbModel { Key = key, Url = url, LastSeen = DateTimeOffset.MinValue }, ctx);
|
||||
await db.SaveChangesAsync(ctx);
|
||||
await botInstance.SendChatMessageAsync("Added image to database", true);
|
||||
//await botInstance.SendChatMessageAsync("Added image to database", true);
|
||||
await botInstance.SendChatMessageAsync(
|
||||
$"{user.FormatUsername()}, you added the following media to the {key} carousel\n[img]{url}[/img]", true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,7 +88,9 @@ public class RemoveImageCommand : ICommand
|
||||
|
||||
db.Images.Remove(image);
|
||||
await db.SaveChangesAsync(ctx);
|
||||
await botInstance.SendChatMessageAsync("Removed image from database", true);
|
||||
// await botInstance.SendChatMessageAsync("Removed image from database", true);
|
||||
await botInstance.SendChatMessageAsync(
|
||||
$"{user.FormatUsername()}, you removed the following media from the {key} carousel\n[img]{url}[/img]", true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user