diff --git a/APIServer.cs b/APIServer.cs index 18bd416..ca91381 100644 --- a/APIServer.cs +++ b/APIServer.cs @@ -185,11 +185,15 @@ namespace server } if (Url == "images/v2/named") { - s = BlankResponse; + s = ImagesV2Named; } if (Url == "PlayerReporting/v1/moderationBlockDetails") { s = ModerationBlockDetails; + } + if (Url == "messages/v2/get") + { + s = } Console.WriteLine("API Response: " + s); byte[] bytes = Encoding.UTF8.GetBytes(s); @@ -212,7 +216,8 @@ namespace server public static ulong CachedPlayerID = 1; public static ulong CachedPlatformID = 10000; public static string VersionCheckResponse = "{\"ValidVersion\":true}"; - public static string BlankResponse = "[]"; + public static string BlankResponse = ""; + public static string BracketResponse = "[]"; public static string ModerationBlockDetails = "{\"ReportCategory\":0,\"Duration\":0,\"GameSessionId\":0,\"Message\":\"\"}"; public static string ImagesV2Named = "[{\"FriendlyImageName\":\"DormRoomBucket\",\"ImageName\":\"OpenRec\",\"StartTime\":\"2021-12-27T21:27:38.1880175-08:00\",\"EndTime\":\"2043-12-27T21:27:38.1880399-08:00\"}"; diff --git a/LoginCached.cs b/LoginCached.cs index 63a988d..eccb881 100644 --- a/LoginCached.cs +++ b/LoginCached.cs @@ -83,7 +83,7 @@ namespace api2018 } } }, - Token = "NoKeyProvided", + Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImV4cCI6MTYxOTI4NzQ2MSwidmVycyI6IjIwMTcxMTE3X0VBIn0.-GqtcqPwAzr9ZJioTiz5v0Kl4HMMjH8hFMtVzQtRN5c", FirstLoginOfTheDay = true, AnalyticsSessionId = 392394UL, CanUseScreenMode = true diff --git a/Program.cs b/Program.cs index d58b51a..9394870 100644 --- a/Program.cs +++ b/Program.cs @@ -15,9 +15,11 @@ namespace start Start: Console.WriteLine("OpenRec - Open source RecNet server software."); + Console.WriteLine("Made and provided by RecRoom 2016."); + Console.WriteLine("Download source code here: https://github.com/recroom2016/OpenRec."); + Console.WriteLine("Discord: https://discord.gg/daC8QUhnFP" + Environment.NewLine); Console.WriteLine("1) Modify Settings" + Environment.NewLine + "2) Modify Profile" + Environment.NewLine + "3) Start Server"); string readline = Console.ReadLine(); - if (readline == "1") { Console.WriteLine("Not yet added in..."); @@ -25,7 +27,6 @@ namespace start } if (readline == "2") { - goto Start; Console.Clear(); Console.WriteLine("1) Change Username" + Environment.NewLine + "2) Go Back"); string readline3 = Console.ReadLine(); @@ -38,18 +39,15 @@ namespace start File.WriteAllText("SaveData\\Profile\\username.txt)", newusername); Console.Clear(); goto Start; - } if (readline3 == "2") { Console.Clear(); goto Start; - } } if (readline == "3") { - Console.WriteLine("Please select the version of RecRoom the server should host: (2016, 2017, 2018)"); string readline2 = Console.ReadLine(); if (readline2 == "2016") @@ -81,7 +79,7 @@ namespace start } } - public static string version = ""; + public static string version = "0.1"; } }