.BANCHO. Add lets version in !system status

This commit is contained in:
Nyo 2016-11-17 20:11:11 +01:00
parent 8078596a0a
commit e30893d66f
1 changed files with 6 additions and 0 deletions

View File

@ -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"