From 9055fcaf5e82f47782c8167e2b1c2b28754e74b4 Mon Sep 17 00:00:00 2001 From: Nyo Date: Wed, 28 Dec 2016 16:15:07 +0100 Subject: [PATCH] .BANCHO. .FIX. Fix some format errors --- constants/fokabotCommands.py | 2 +- helpers/chatHelper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/constants/fokabotCommands.py b/constants/fokabotCommands.py index d017082..2e6a65f 100644 --- a/constants/fokabotCommands.py +++ b/constants/fokabotCommands.py @@ -386,7 +386,7 @@ def getPPMessage(userID, just_data = False): currentAcc = token.tillerino[2] # Send request to LETS api - resp = requests.get("http://127.0.0.1:5002/api/v1/pp?b={}&m={}".format(currentMap, currentMods, currentAcc), timeout=10).text + resp = requests.get("http://127.0.0.1:5002/api/v1/pp?b={}&m={}".format(currentMap, currentMods), timeout=10).text data = json.loads(resp) # Make sure status is in response data diff --git a/helpers/chatHelper.py b/helpers/chatHelper.py index 27db4d0..428cbc3 100644 --- a/helpers/chatHelper.py +++ b/helpers/chatHelper.py @@ -243,7 +243,7 @@ def sendMessage(fro = "", to = "", message = "", token = None, toIRC = True): # Away check if recipientToken.awayCheck(token.userID): - sendMessage(to, fro, "\x01ACTION is away: {message}\x01".format(code=chr(int(1)), message=recipientToken.awayMessage)) + sendMessage(to, fro, "\x01ACTION is away: {}\x01".format(recipientToken.awayMessage)) # Check message templates (mods/admins only) if message in messageTemplates.templates and token.admin == True: