Red-discordbot: Cannot answer to roll

Created on 8 Jan 2020  路  4Comments  路  Source: Cog-Creators/Red-DiscordBot

Command bugs

Command name

roll.

What cog is this command from?

From : General.

What were you expecting to happen?

The command should answer the number.

What actually happened?

The command return an error message. Command raised an exception: HTTPException: 400 BAD REQUEST (error code: 50035): Invalid Form Body In content: Must be 2000 or fewer in length.

How can we reproduce this issue?

You can use this command :

.roll 99990123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

The bot CAN answer to this, it just need to remove the author mention and the 2 馃幉

In progress Bug good first issue

Most helpful comment

I think that setting an upper limit on the size of a dice roll is a better solution for this than attempting to change the output after the fact.

All 4 comments

I'm inclined to say we cap roll to a reasonable number rather than special case long output.

I think that setting an upper limit on the size of a dice roll is a better solution for this than attempting to change the output after the fact.

I will take this on.

2**64 -1 is a Known number to work, I think setting a max cap to this is an acceptable amount ...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StaffTroll picture StaffTroll  路  5Comments

LGACode picture LGACode  路  4Comments

Dav-Git picture Dav-Git  路  4Comments

IdkGoodName picture IdkGoodName  路  3Comments

clovisd picture clovisd  路  3Comments