From 7863c489014df767a47fef49bb1c059b1628611a Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Fri, 1 Apr 2016 20:47:23 +0200 Subject: [PATCH] DnD style roll fix, closes #143 --- NadekoBot/Modules/Gambling/DiceRollCommand.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NadekoBot/Modules/Gambling/DiceRollCommand.cs b/NadekoBot/Modules/Gambling/DiceRollCommand.cs index e19cfb32..7e8ae39a 100644 --- a/NadekoBot/Modules/Gambling/DiceRollCommand.cs +++ b/NadekoBot/Modules/Gambling/DiceRollCommand.cs @@ -72,8 +72,10 @@ namespace NadekoBot.Modules.Gambling { arr[i] = r.Next(1, n2 + 1); } - await e.Channel.SendMessage($"`Rolled {n1} {(n1 == 1 ? "die" : "dice")} 1-{n2}.`\n`Result:`" + string.Join(", ", arr.OrderBy(x => x))); + var elemCnt = 0; + await e.Channel.SendMessage($"`Rolled {n1} {(n1 == 1 ? "die" : "dice")} 1-{n2}.`\n`Result:` " + string.Join(", ", arr.OrderBy(x => x).Select(x => elemCnt++ % 2 == 0 ? $"**{x}**" : x.ToString()))); } + return; } try {