From 7c2de6da37104394e9c0ca73f4cc0920d9b8004b Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Thu, 19 Mar 2020 13:30:35 -0700 Subject: [PATCH] [ChatChart] Use nickname instead of name --- chatchart/chatchart.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chatchart/chatchart.py b/chatchart/chatchart.py index db14b6c..d843da8 100644 --- a/chatchart/chatchart.py +++ b/chatchart/chatchart.py @@ -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