This commit is contained in:
Sakimori 2020-12-20 01:35:51 -05:00
commit b3c045664b

View File

@ -44,7 +44,7 @@ async def on_message(msg):
elif msg.channel.id == config()["soulscream channel id"]: elif msg.channel.id == config()["soulscream channel id"]:
try: try:
await msg.channel.send(ono.get_stats(msg.author.nick)) await msg.channel.send(ono.get_stats(msg.author.nick))
except TypeError: except TypeError or AttributeError:
await msg.channel.send(ono.get_stats(msg.author.name)) await msg.channel.send(ono.get_stats(msg.author.name))
except AttributeError: except AttributeError:
await msg.channel.send(ono.get_stats(msg.author.name)) await msg.channel.send(ono.get_stats(msg.author.name))