From 70baa01d323e7f16b23c08cb016fc2ef5f3b009e Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Thu, 14 Apr 2022 18:26:44 +0700 Subject: [PATCH] Try showing the username instead --- Bot/Games/HackerBattle.fs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Bot/Games/HackerBattle.fs b/Bot/Games/HackerBattle.fs index 0642bb1..a16790a 100644 --- a/Bot/Games/HackerBattle.fs +++ b/Bot/Games/HackerBattle.fs @@ -234,7 +234,12 @@ let scan (ctx : IDiscordContext) = let mutable count = 0 for t in targets do count <- count + 1 - sb.AppendLine($"{count}.) **{t.Name}**") |> ignore + let result , user = ctx.GetGuild().Members.TryGetValue(t.Id) + if result then + sb.AppendLine($"{count}.) **{user.Username}**") |> ignore + else + printfn $"Could not find user {t.Id}" + sb.AppendLine($"{count}.) **{t.Name}**") |> ignore let msg = if targets.Length > 0 then $"**Targets Connected to the Network:**\n\n These are 5 targets you can attempt to hack right now... let's hope they're not shielded!\n\n{sb}"