Skip to content

Commit

Permalink
Add the option to print the roll count to dice rolling
Browse files Browse the repository at this point in the history
  • Loading branch information
Techtony96 committed Mar 26, 2018
1 parent d645f82 commit 8dad8f0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ public static void rollCommand(CommandContext cc) throws CommandArgumentExceptio
return;
}

cc.replyWith(getDieEmbed(numDice, numSides));
if (cc.getChannel().getTopic().toLowerCase().contains("--print-rolls")) {
EmbedObject embed = getDieEmbed(numDice, numSides);
cc.replyWith(embed.title);
cc.replyWith(embed);
} else
cc.replyWith(getDieEmbed(numDice, numSides));
}

@EventSubscriber
Expand Down

0 comments on commit 8dad8f0

Please sign in to comment.