Update BotClientService.cs

This commit is contained in:
Madpeter 2023-07-26 21:58:09 +01:00
parent 45fdca1896
commit f7ad38aa7d

View file

@ -92,10 +92,13 @@ namespace SecondBotEvents.Services
client.Self.InstantMessage(avatar, message); client.Self.InstantMessage(avatar, message);
} }
public bool SendNotecard(string name, string content, UUID sendToUUID) public bool SendNotecard(string name, string content, UUID sendToUUID, bool attachDateTime=true)
{ {
bool returnstatus = true; bool returnstatus = true;
if (attachDateTime == true)
{
name = name + " " + DateTime.Now; name = name + " " + DateTime.Now;
}
client.Inventory.RequestCreateItem( client.Inventory.RequestCreateItem(
client.Inventory.FindFolderForType(AssetType.Notecard), client.Inventory.FindFolderForType(AssetType.Notecard),
name, name,