Multiple people issuing commands to the bot, all at the same time, is something I've been thinking about. Since this particular snippet is just one of many possible commands, I didn't embed trigger flood protection here specifically. It is my hope I'll be able to work out a better solution at a higher level. But I do appreciate it being mentioned :) keep me honest guys ;D
@SReject: I actually did start off with something similar .. not nearly as elegant as what you posted here, but along the same lines. I ended up expanding it mostly because of people wanting to see individual rolls, and to identify natural 20's
Added event. This is how i'm using it.. inline with a slew of other !commands, thus the [if ($1 == !roll)] around the whole thing.
If !roll is called from a PM, all output is limited to that window, regardless of other channels you may be in. If !roll is called from within a channel containing the bot, rolls are reported in a PM to the user who called it, with final output being sent both to the PM as well as a notice to the channel where the command originated.
@Aha2Y: Thanks :)
@Jethro_: Yeah, i saw on some other dice roller they had a limiter for the maximum number of dice allowed. I should probably throw that in there. Also, the output is in a PM only, so as long as you're not doing something outlandish it should be okay. Granted, you don't want to go doing something like 500d12 .. cause, yeah.. that would flood you :P