From 316b5f283df7a439c05cd4d3570880f296b86bca Mon Sep 17 00:00:00 2001 From: Tikuf Date: Fri, 1 May 2020 15:09:23 -0600 Subject: [PATCH 1/2] Removed script name extra title text --- Core/bottypes/CommandsBot.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/bottypes/CommandsBot.cs b/Core/bottypes/CommandsBot.cs index 3c16955..4e762b9 100644 --- a/Core/bottypes/CommandsBot.cs +++ b/Core/bottypes/CommandsBot.cs @@ -295,11 +295,11 @@ namespace BSB.bottypes public bool SendScript(string name, string content, UUID sendToUUID) { bool returnstatus = true; - name = name + " " + DateTime.Now; + Client.Inventory.RequestCreateItem( Client.Inventory.FindFolderForType(AssetType.LSLText), name, - name + " Created via SecondBot Script API", + name, AssetType.LSLText, UUID.Random(), InventoryType.LSL, From 6d06709cb577f93f916a2a6977c87fc4b7b2c249 Mon Sep 17 00:00:00 2001 From: Tikuf Date: Fri, 1 May 2020 16:24:57 -0600 Subject: [PATCH 2/2] Fixed handeling of encoded name Spaces now replace %20 --- Core/Commands/Script/scriptHttp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Commands/Script/scriptHttp.cs b/Core/Commands/Script/scriptHttp.cs index 77d9187..c709294 100644 --- a/Core/Commands/Script/scriptHttp.cs +++ b/Core/Commands/Script/scriptHttp.cs @@ -38,7 +38,7 @@ namespace BSB.Commands.script { if (UUID.TryParse(args[1], out UUID Avatar)) { - return bot.SendScript(attempt_endpoint.Split('/').LastOrDefault(), endpoint_checks.Content, Avatar); + return bot.SendScript(attempt_endpoint.Split('/').LastOrDefault().Replace("%20", " "), endpoint_checks.Content, Avatar); } else {