Rolisteam / DiceParser

Powerful dice Roller is used as discord bot, irc bot, cli tool and inside Rolisteam : 1d20+4, 1L[head,arm,leg,belly,chest], 1d6+1d8, 8+5*3
http://www.rolisteam.org/
GNU General Public License v3.0
125 stars 31 forks source link

Is it possible to include caller name in comment? #30

Closed frakc closed 4 years ago

frakc commented 5 years ago

I'ld like to add player name who runs command to bot respons on discord. So if all players will roll in same time, it will be cler who has which result.

caitlynb commented 4 years ago

Voting for this if such a thing exists! (Thanks for the plugin!)

obiwankennedy commented 4 years ago

You can ask to your player to do it.

!1d100 # @Obi#1138 It works,  I know it is not perfect, but it breaks the ambiguity

MrMcX commented 4 years ago

@obiwankennedy Is it possible to set the name automatically in a macro?

JoeGans commented 4 years ago

MrMcX wrote... @obiwankennedy Is it possible to set the name automatically in a macro?

Yeah, that would be a great addition to macro's, if it could automatically capture the username of the person using the macro command!

obiwankennedy commented 4 years ago

mmm… it may be possible. Adding in the comment something like that : 1d6 # $User

LukeZS commented 4 years ago

Yes please! It would be very useful :)

obiwankennedy commented 4 years ago

I will make that after the covid-19 pandemic, the bot is under heavy use, right now, If I broke something for 2 mins, I'm scared to be sentenced to death.

LukeZS commented 4 years ago

Ok, thanks! I was hoping to use this feature during the codiv19 months, but we'll wait.

fily1212 commented 4 years ago

Yes, really like this planned feature! Today I want to write a macro adding the name of the user, so if it will be possible to use $user, it will be great!

obiwankennedy commented 4 years ago

It is ready on my side, I will deploy it at the end of this week. It will come along with several other changes. I rewrite part of the bot about management of subcommands.

obiwankennedy commented 4 years ago

This feature has been deployed.

image

JoeGans commented 4 years ago

Thanks Obi! ... Walts

fily1212 commented 4 years ago

Hello! Thank you for your working! But I think it works only in a simple dice roll and with #, correct? Example of working and not working For example this doesn't work:

!1d6; "hello $user, $1"

Thank you! Best Filippo

obiwankennedy commented 4 years ago

Yes, it is only supported as the comment of the command.