dbot icon indicating copy to clipboard operation
dbot copied to clipboard

Command aliases

Open reality opened this issue 11 years ago • 5 comments

commands['~commandone'].aliases = [ '~bertrand' ]

reality avatar Jan 12 '13 10:01 reality

Issue here is with commands which use regex, since the command name itself is part of the regexen. Though I don't think they have to be? Perhaps we can remove those

reality avatar Jan 12 '13 10:01 reality

dbot.api.command.createAlias('~setprop', ['warn'])

I want to do ~warn user --> ~setprop user warn

Probably need an anon function passed to createAlias to map the data?

reality avatar Jan 28 '13 12:01 reality

This may end up conflicting with quotes. Will have to be careful about that.

johnmaguire avatar Mar 21 '13 07:03 johnmaguire

@reality Defer to 0.5?

SamStudio8 avatar Apr 22 '13 16:04 SamStudio8

ok

reality avatar Apr 22 '13 16:04 reality