From c4104120971c42046d8ddcb033c4453a5a9614d4 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Mon, 23 Jun 2025 23:03:04 +0100 Subject: [PATCH] allow custom subjects for notecards --- SecondBotEvents/Services/BotClientService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SecondBotEvents/Services/BotClientService.cs b/SecondBotEvents/Services/BotClientService.cs index e125e39..f668d5b 100644 --- a/SecondBotEvents/Services/BotClientService.cs +++ b/SecondBotEvents/Services/BotClientService.cs @@ -120,17 +120,21 @@ namespace SecondBotEvents.Services client.Self.InstantMessage(avatar, message); } - public bool SendNotecard(string name, string content, UUID sendToUUID, bool attachDateTime=true) + public bool SendNotecard(string name, string content, UUID sendToUUID, bool attachDateTime=true, string subject=null) { bool returnstatus = true; if (attachDateTime == true) { name = name + " " + DateTime.Now; } + if (subject == null) + { + subject = name + " Created via SecondBot notecard API"; + } client.Inventory.RequestCreateItem( client.Inventory.FindFolderForType(AssetType.Notecard), name, - name + " Created via SecondBot notecard API", + subject, AssetType.Notecard, UUID.Random(), InventoryType.Notecard,