Adding default diceRecipe
This commit is contained in:
parent
01d504c077
commit
345304537a
@ -23,7 +23,12 @@ namespace ChaosBot.Discord.Modules.User
|
||||
{
|
||||
try
|
||||
{
|
||||
string diceRecipe = Strings.Join(args, " ");
|
||||
string diceRecipe = null;
|
||||
|
||||
if (args.Length > 1)
|
||||
diceRecipe = Strings.Join(args, " ");
|
||||
else
|
||||
diceRecipe = "1d20";
|
||||
|
||||
var sb = new StringBuilder();
|
||||
var embed = new EmbedBuilder();
|
||||
@ -48,9 +53,11 @@ namespace ChaosBot.Discord.Modules.User
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error($"{MethodBase.GetCurrentMethod().ReflectedType.FullName}: Exception [{ex}] thrown, <[{ex.Message}]>.");
|
||||
_logger.Error(
|
||||
$"{MethodBase.GetCurrentMethod().ReflectedType.FullName}: Exception [{ex}] thrown, <[{ex.Message}]>.");
|
||||
}
|
||||
}
|
||||
|
||||
private string DiceOutput(RollResult rollResult)
|
||||
{
|
||||
if (rollResult.RollRoot == null) return "";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user