p-hennessy / Bolt

All the parts for building a Discord robot
https://docs.bolt.bot/
MIT License
8 stars 6 forks source link

test embed #64

Closed p-hennessy closed 7 years ago

p-hennessy commented 7 years ago

Could be cool to do something like Flask does

@command("nslookup <str:target>")
def nslookup(self, event):
    function(event.arguments.target)

Looks like this code is rather abstracted so it's not obvious what is accomplishing this. https://github.com/pallets/werkzeug/blob/master/werkzeug/routing.py http://werkzeug.pocoo.org/docs/0.12/routing/#custom-converters

Wondering if it's possible to do this and keep the same type of regex interface?