Skip to content

Commit 13e3860

Browse files
committed
Fix prefixes
1 parent 7ffd54a commit 13e3860

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/bcdice_api/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def diceroll(system, command)
8080
'name' => dicebot::NAME,
8181
'gameType' => dicebot::ID,
8282
'sortKey' => dicebot::SORT_KEY,
83-
'prefixs' => dicebot.prefixes_pattern,
83+
'prefixs' => dicebot.prefixes,
8484
'info' => dicebot::HELP_MESSAGE
8585
}
8686

test/test_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_systeminfo
5757
assert json['systeminfo']
5858
assert_equal json['systeminfo']['gameType'], 'DiceBot'
5959
assert_false json['systeminfo']['name'].empty?
60-
assert json['systeminfo']['prefixs']
60+
assert_instance_of Array, json['systeminfo']['prefixs']
6161

6262
pend 'DiceBot::HELP_MESSAGE will be supported in BCDice v3'
6363
assert_false json['systeminfo']['info'].empty?

0 commit comments

Comments
 (0)