[ChatChart] Use nickname instead of name
This commit is contained in:
@@ -102,10 +102,10 @@ class Chatchart(commands.Cog):
|
||||
msg_data = {"total count": 0, "users": {}}
|
||||
|
||||
for msg in history:
|
||||
if len(msg.author.name) >= 20:
|
||||
short_name = "{}...".format(msg.author.name[:20]).replace("$", "\$")
|
||||
if len(msg.author.display_name) >= 20:
|
||||
short_name = "{}...".format(msg.author.display_name[:20]).replace("$", "\$")
|
||||
else:
|
||||
short_name = msg.author.name.replace("$", "\$")
|
||||
short_name = msg.author.display_name.replace("$", "\$")
|
||||
whole_name = "{}#{}".format(short_name, msg.author.discriminator)
|
||||
if msg.author.bot:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user