Skip to content

Commit 1ad1e8b

Browse files
committed
Use better format for API
1 parent c3dde4c commit 1ad1e8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ArchiSteamFarm/Bot.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,12 @@ private static string ResponseAPI(ulong steamID) {
771771
return null;
772772
}
773773

774+
var response = new {
775+
Bots
776+
};
777+
774778
try {
775-
return JsonConvert.SerializeObject(Bots);
779+
return JsonConvert.SerializeObject(response);
776780
} catch (JsonException e) {
777781
Logging.LogGenericException(e);
778782
return null;

0 commit comments

Comments
 (0)