Commit Graph

6 Commits

Author SHA1 Message Date
RogueException
324664917d Added new parameter scoring, support multiple matches 2016-08-21 11:03:50 -03:00
RogueException
0b25554c31 Unknown overload should return UnknownCommand instead of ParseFailed 2016-08-17 10:07:26 -03:00
Finite Reality
a5393dc937 Rename Permission to Precondition 2016-08-03 16:50:51 +01:00
Finite Reality
eb38bdd437 Fix indentation 2016-08-02 17:54:52 +01:00
Finite Reality
772fd97080 Implement initial command permissions system
After our initial discussion on the matter (see #172) this is the system
that we all seem to have agreed on. As a result, I have implemented a
simple system which effectively implements permissions, while being
extensible and tweakable so bot devs can decide what they want to do for
permissions.

As for default 'permissions', I'm not sure what the best approach would be
here; bot devs are likely to implement their own permissions 'levels' and
use those. I think the most we could do for now is add attributes to
require certain users (by id) and certain roles (by id and possibly by
name?) This would probably be the best option for now as it requires less
work from us, nor do we know the *exact* approach bot devs want to take
with permissions.
2016-08-02 17:29:39 +01:00
RogueException
f59b6b9004 Implemented command type readers, parser and service. 2016-06-26 03:35:40 -03:00