1
0
mirror of https://github.com/MrDetonia/Maki.git synced 2024-11-22 03:44:18 -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']
else: namestr = ''
if 'personastate' in dataresponse:
statestr = personastates[dataresponse['personastate']]
statestr = '`' + personastates[dataresponse['personastate']] + '`'
else: statestr = ''
if 'gameextrainfo' in dataresponse:
gamestr = ' playing ' + dataresponse['gameextrainfo']
gamestr = ' playing `' + dataresponse['gameextrainfo'] + '`'
else: gamestr = ''
responsetext = [(namestr + ' is ' + statestr + gamestr).replace(' ', ' ')]