From e30893d66f844d3984c29710567a38cfd3f49057 Mon Sep 17 00:00:00 2001 From: Nyo Date: Thu, 17 Nov 2016 20:11:11 +0100 Subject: [PATCH] .BANCHO. Add lets version in !system status --- constants/fokabotCommands.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/constants/fokabotCommands.py b/constants/fokabotCommands.py index 2eec0df..b236995 100644 --- a/constants/fokabotCommands.py +++ b/constants/fokabotCommands.py @@ -360,7 +360,13 @@ def systemStatus(fro, chan, message): data = systemHelper.getSystemInfo() # Final message + letsVersion = glob.redis.get("lets:version") + if letsVersion is None: + letsVersion = "\_(xd)_/" + else: + letsVersion = letsVersion.decode("utf-8") msg = "pep.py bancho server v{}\n".format(glob.VERSION) + msg += "LETS scores server v{}\n".format(letsVersion) msg += "made by the Ripple team\n" msg += "\n" msg += "=== BANCHO STATS ===\n"