1
0
mirror of https://github.com/MrDetonia/Maki.git synced 2024-11-25 20:47:57 -05:00

formatting responsetext

This commit is contained in:
MarkPash 2017-04-08 13:48:12 +00:00
parent 1bd841a590
commit 5b5588f537
No known key found for this signature in database
GPG Key ID: 82C536398AB4089A

4
bot.py
View File

@ -161,10 +161,10 @@ def steamdata(vanityname):
namestr = dataresponse['personaname'] namestr = dataresponse['personaname']
else: namestr = '' else: namestr = ''
if 'personastate' in dataresponse: if 'personastate' in dataresponse:
statestr = personastates[dataresponse['personastate']] statestr = '`' + personastates[dataresponse['personastate']] + '`'
else: statestr = '' else: statestr = ''
if 'gameextrainfo' in dataresponse: if 'gameextrainfo' in dataresponse:
gamestr = ' playing ' + dataresponse['gameextrainfo'] gamestr = ' playing `' + dataresponse['gameextrainfo'] + '`'
else: gamestr = '' else: gamestr = ''
responsetext = [(namestr + ' is ' + statestr + gamestr).replace(' ', ' ')] responsetext = [(namestr + ' is ' + statestr + gamestr).replace(' ', ' ')]