From 0dbf892a8416100d1a23138494606604053076ec Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 15 Mar 2017 14:09:02 +0100 Subject: [PATCH] !api without result in current bot instance now Same like every other command, !api ASF exists for older behaviour --- ArchiSteamFarm/Bot.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 4ac06772b..acb28b260 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -2047,9 +2047,9 @@ namespace ArchiSteamFarm { return responses.Count > 0 ? string.Join("", responses) : null; } - private static string ResponseAPI(ulong steamID) { - if (steamID != 0) { - return IsOwner(steamID) ? FormatStaticResponse(GetAPIStatus(Bots)) : null; + private string ResponseAPI(ulong steamID) { + if (steamID == 0) { + return IsMaster(steamID) ? GetAPIStatus(Bots.Where(kv => kv.Value == this).ToDictionary(kv => kv.Key, kv => kv.Value)) : null; } ASF.ArchiLogger.LogNullError(nameof(steamID));