Quellcode durchsuchen

formatting responsetext

master
MarkPash vor 7 Jahren
Ursprung
Commit
5b5588f537
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 82C536398AB4089A
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      bot.py

+ 2
- 2
bot.py Datei anzeigen

@@ -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(' ', ' ')]


Laden…
Abbrechen
Speichern