Gawdl3y / discord-rpbot

A Discord bot that contains commands useful for text roleplaying
GNU Affero General Public License v3.0
53 stars 41 forks source link

Adding inline rolls to where the roll is and multiple inline rolls. #3

Open yigitlevent opened 7 years ago

yigitlevent commented 7 years ago

Hey. So if i have a text like "Something something (roll: 3d6), then something something (roll: 1d20+3).", it only rolls the first one. I wonder if it possible to make the bot roll the second one too (and the third one, so on)? Also would it be possible to add the result of the inline roll to the place it was called? For example:

"Something something (roll: 3d6)" magic happens "Something something (roll 3d6, Result: 10)"

I wonder if this is possible via the manage messages permission?

Gawdl3y commented 7 years ago

Editing the original message is not possible, no. Nobody (including bots) has the ability to edit other peoples' messages.

Imosa1 commented 6 years ago

So, I would like it if the inline message was displayed near the result of the die roll. What if the message was just displayed in the bot's response? For example:

Sifaus: Something something (Roll: 3d6) Bot: @Sifaus rolled 6 (3 + 1 + 2 = 6) for Something something

I'm trying to keep the rolls as organized as possible.

lathey commented 6 years ago

Aye, if the bot re-printed the message it would be handy, was about to ask for that even for normal rolls. So when I say !roll D20+5 the answer is: @Author rolled D20+5 and got 17 (12, 5) And in the case of an inline roll it would just reprint the message but with the resulted inserted where the roll command used to be. IE: I attack the dragon with my lance of dragon peeling (Attack Roll: D20+5) while doing a backflip over it's head off my horse and singing the national anthem (Performance Roll: D20-2) and the response would be I attack the dragon with my lance of dragon peeling (Attack Roll: 17 (12, 5)) while doing a backflip over it's head off my horse and singing the national anthem (Performance Roll: 6 (1, 5))