.BANCHO. .FIX. Fix some format errors
This commit is contained in:
parent
f85640ae39
commit
9055fcaf5e
|
@ -386,7 +386,7 @@ def getPPMessage(userID, just_data = False):
|
||||||
currentAcc = token.tillerino[2]
|
currentAcc = token.tillerino[2]
|
||||||
|
|
||||||
# Send request to LETS api
|
# 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)
|
data = json.loads(resp)
|
||||||
|
|
||||||
# Make sure status is in response data
|
# Make sure status is in response data
|
||||||
|
|
|
@ -243,7 +243,7 @@ def sendMessage(fro = "", to = "", message = "", token = None, toIRC = True):
|
||||||
|
|
||||||
# Away check
|
# Away check
|
||||||
if recipientToken.awayCheck(token.userID):
|
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)
|
# Check message templates (mods/admins only)
|
||||||
if message in messageTemplates.templates and token.admin == True:
|
if message in messageTemplates.templates and token.admin == True:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user