idkclub / dicebot

🎲 /roll support for Slack
https://dicebot.idk.club
The Unlicense
54 stars 20 forks source link

Feature Request: Aliases #64

Open svenssonaxel opened 3 years ago

svenssonaxel commented 3 years ago

First off, thanks for making dicebot!

It would be great if roll instructions could be saved to an alias, scoped to a user.

As a suggestion, the syntax could be extended with a = character to define an alias.

/roll d20+3 for perception =perception

would then get a reply such as

@you rolled 8 + 3 = 11 for perception. In the future, you may say just "/roll perception".

I realize this would necessarily add some kind of data storage, but I think it'd add quite some value for people who use dicebot for complicated games, especially on mobile devices.

arkie commented 3 years ago

While the current host (Vercel) doesn't really support state, I'm currently switching to fly.io, which seems like it might? (Of course, both of these were chosen to attempt to run this at zero cost; I'm hoping to not get into needing to support this significantly out of pocket heh)

Seems like a useful feature, though