diff --git a/README.md b/README.md index e905f8b..1ff463c 100644 --- a/README.md +++ b/README.md @@ -134,9 +134,9 @@ A roll set is possible. Below is an example of the command: `/roll 6 4d6` : Roll 6 sets of four six-sided dice. A size of a set can be between 2 and 20. -Or you can combine multiple unique rolls in a single request. The max unique rolls here is **four** due to Discord API limitations. Example roll is as follows: +Or you can combine multiple unique rolls in a single request. The max unique rolls here is **four** due to Discord API limitations. Rolls are separated with a semicolon. Example roll is as follows: -`/roll 4d100 / 10d6 e6 k8 +4/ 3d10 k2/ ul 3d100` +`/roll 4d100 ; 10d6 e6 k8 +4; 3d10 k2; ul 3d100` **Note:** Multi roll support is in a "beta feature" stage and some more complicated rolls may cause issues. Please report on github if you run into a problem! diff --git a/dice_maiden.rb b/dice_maiden.rb index cf903e7..8083a14 100755 --- a/dice_maiden.rb +++ b/dice_maiden.rb @@ -1,6 +1,6 @@ # Dice bot for Discord # Author: Humblemonk -# Version: 9.0.2 +# Version: 9.0.3 # Copyright (c) 2017. All rights reserved. # !/usr/bin/ruby # If you wish to run a single instance of this bot, please follow the "Manual Install" section of the readme! @@ -54,7 +54,7 @@ response_array = [] begin inc_event_roll = event.options.values.join('') - rolls_array = inc_event_roll.split(%r{\s*/\s*}).take(4) + rolls_array = inc_event_roll.split(/\s*;\s*/).take(4) rolls_array.each do |event_roll| @do_tally_shuffle = false check_comment(event_roll) diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 10dd0cc..f3c557c 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,8 @@ +## 9.0.3 -2024-06-27 +### Added +- Updated multi roll logic to use semi colons to break between roll sets. + Resolves an issue with doing division commands + ## 9.0.2 -2024-06-24 ### Added - Resolved an issue where numbers in comments broke rolls