Skip to content

Commit a6e2f5f

Browse files
author
Vivien Mouret
committed
🔒️ catch preroll
1 parent 661d20e commit a6e2f5f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

command/roll.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ module.exports = {
2121
earnCsv = [],
2222
dataUser = [];
2323

24-
weapons.setPreRoll(client);
24+
try {
25+
weapons.setPreRoll(client);
2526

26-
var sword = weapons.fiRoll,
27-
claymore = weapons.seRoll,
28-
shield = weapons.thRoll,
29-
bow = weapons.foRoll,
30-
axes = weapons.ffRoll;
27+
var sword = weapons.fiRoll,
28+
claymore = weapons.seRoll,
29+
shield = weapons.thRoll,
30+
bow = weapons.foRoll,
31+
axes = weapons.ffRoll;
3132

32-
try {
3333
for (let i = 0; i < 15; i++) {
3434
if (roll.length < 3) {
3535
roll.push(sword[randomIntFromInterval(0, (sword.length - 1))]);

0 commit comments

Comments
 (0)