Avalander / yuki

1 stars 0 forks source link

Response message too long when Yuki asked to roll a lot of dice #35

Closed arturjzapater closed 4 years ago

arturjzapater commented 4 years ago

When rolling dice, Yuki shows a list with the results of every single dice rolled. That means that if she's asked to roll a lot of dice, the channel screen gets clogged with huge lists. Moreover, since Discord limits message size to 2,000 characters, depending on the side's of the dice, Yuki can roll a maximum of about 960 dice at once.

To avoid that, it'd be nice to count the amount of dice to roll and only show the list of individual results if the total is, for instance, twenty or less.

Avalander commented 4 years ago

Another option is to make Yuki send multiple messages if the text is too long. I'm not sure what someone rolling for hundreds of dice would be looking for though.

arturjzapater commented 4 years ago

I think maybe then we could add a verbose option to opt in that behaviour. But I'd prefer to leave the abbreviated version as the default.