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: