diff --git a/bot.py b/bot.py index c1c87ad3..e690fee5 100644 --- a/bot.py +++ b/bot.py @@ -337,7 +337,7 @@ def cv(): else: m['name'] = member['username'] tosend += "{emoji} {name}".format(emoji=m['emoji'], name=m['name']) - elif 'gamename' in m: + if 'gamename' in m: tosend += " | _{gamename}_".format(gamename=m['gamename']) elif 'channelname' in m: tosend += " | {vemoji} *{channelname}*".format(vemoji=m['vemoji'], channelname=m['channelname']) diff --git a/db.py b/db.py index 683cb1f5..537a7718 100644 --- a/db.py +++ b/db.py @@ -2,13 +2,15 @@ import json db = json.load("db.json") -def findname(name: str): + +def findbyname(name: str): for player in db: if player == name: return db[player] else: return None + def findbykey(key, value): for player in db: if player[key] == value: