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 { diff --git a/Core/bottypes/CommandsBot.cs b/Core/bottypes/CommandsBot.cs index 8bed8c4..91ed0cc 100644 --- a/Core/bottypes/CommandsBot.cs +++ b/Core/bottypes/CommandsBot.cs @@ -299,11 +299,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,