diff --git a/main.py b/main.py index 2030069..8b961d7 100644 --- a/main.py +++ b/main.py @@ -50,7 +50,10 @@ except ImportError: userMappings[f"<@{user['id']}>"] = ( f"<@{user['profile']['display_name']}>" if user["profile"]["display_name"] - else f"<@{user['id']}>" + else ( + f"<@{user['profile']['real_name']}>" + if user["profile"]["real_name"] + else f"<@{user['id']}>") ) print("All mappings generated, writing cache file now...") with open("cache.py", "w") as cacheFile: