mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-22 03:44:18 -05:00
formatting responsetext
This commit is contained in:
parent
1bd841a590
commit
5b5588f537
4
bot.py
4
bot.py
@ -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(' ', ' ')]
|
||||||
|
Loading…
Reference in New Issue
Block a user