Commit Graph

107 Commits

Author SHA1 Message Date
Finite Reality
a5393dc937 Rename Permission to Precondition 2016-08-03 16:50:51 +01:00
Finite Reality
023703c996 Add logic to CommandService.Execute to handle basic permissions checks 2016-08-03 16:43:25 +01:00
Christopher F
4c200c94ec Key the ModuleMap based on Type rather than instance 2016-07-30 21:44:14 -04:00
Christopher F
9348e087b0 Don't load modules that are already loaded
Previously, if a user autoloaded commands more than once, commands that were already in the command map would be readded. 

If the module list already contains a module with the same type as the module being loaded, it will not load the new instance of this module.
2016-07-30 18:23:12 -04:00
RogueException
4a06753990 Cleaned up TypeReaders 2016-07-26 19:01:51 -03:00
Finite Reality
f7455c389b Improve DI system 2016-07-21 00:23:49 +01:00
Christopher F
bbe51012cf Add Dependency Map, Update Assembly Crawler
[Untested] Assembly Crawler will now accept constructors matching: new(), new(CommandService), new(IDependencyMap).

Add IDependencyMap

Add DependencyMap
2016-07-20 17:50:52 -04:00
Christopher F
6e42acba68 Add Autoload to Module Attribute
[UNTESTED] Adds an optional parameter to the Module attribute, "autoload", which defaults to true.

Specifies whether or not the assembly crawler should load this module.
2016-07-20 17:20:37 -04:00
RogueException
da2002b520 Renamed Message.Text -> Message.Content 2016-07-15 22:34:27 -03:00
RogueException
efc87ef06d Removed IMessage.Text, renamed RawText -> Text, added Resolve 2016-07-13 13:07:24 -03:00
RogueException
079d9d487d Forwarded the parse error if a command search has only one match 2016-07-12 07:39:27 -03:00
Khionu Terabite
3ad3912606 We all do it now and then <3 2016-07-07 20:35:46 -04:00
RogueException
7723130713 Implemented new CommandMap 2016-06-29 07:03:44 -03:00
RogueException
37ab13160b Fixed CommandService.Execute crash bug 2016-06-29 05:27:29 -03:00
RogueException
7bb890cbfe Added command groups, fixed several bugs 2016-06-27 06:56:24 -03:00
RogueException
f6c31a0b19 Added argPos overloadeds to CommandService's Search and Execute 2016-06-26 22:53:46 -03:00
RogueException
0e710cc76a Added a shorthand CommandService.Execute method 2016-06-26 21:40:05 -03:00
RogueException
eb7ec637a5 Cleaned up several CommandService functions 2016-06-26 21:06:34 -03:00
RogueException
5ac320312d Added CommandService.Unload(Module) overload 2016-06-26 21:00:39 -03:00
RogueException
f59b6b9004 Implemented command type readers, parser and service. 2016-06-26 03:35:40 -03:00
RogueException
32ab967f4a Reorganized commands structure 2016-06-21 05:34:11 -03:00
RogueException
5bdd6a7ff3 Early 1.0 REST Preview 2016-04-04 20:15:16 -03:00
RogueException
27d7e9915b Initial 1.0-alpha1 design changes 2016-02-24 07:00:49 -04:00
RogueException
173df19439 Fixed crash with short mention activation strings 2016-02-14 13:45:58 -04:00
RogueException
196c6ac698 Fixed crash if prefix mention is checked in PM 2016-02-12 00:32:50 -04:00
RogueException
cb4d00ac4e Split config into builder and immutable classes, added some audioservice extension methods. 2016-02-09 18:02:49 -04:00
RogueException
ef95539e2e Cleaned up the help command's footer 2016-02-09 15:20:12 -04:00
RogueException
88776c94d1 Fixed a couple substring bugs in commandservice 2016-02-09 15:13:25 -04:00
RogueException
2849acb005 Cleaned up new CommandService activations and help args. 2016-02-09 15:07:59 -04:00
Googie2149
eaa9065d00 Allow ActivationMode.Mention to kinda work in PM from the client 2016-01-27 15:49:43 -05:00
Googie2149
00171c68ac Custom activation methods 2016-01-27 15:10:03 -05:00
Googie2149
484b2b1391 Removed extra bracket 2016-01-27 11:25:14 -05:00
Googie2149
2ed49d2fd5 Change built in help
Finally removed the placeholders...
2016-01-25 17:55:35 -05:00
RogueException
f581434497 Cleaned up a few internal command constructor, fixed subgroups not maintaining category 2016-01-18 22:52:16 -04:00
RogueException
a2c9373ed6 Fixed several potential deadlocks 2016-01-13 22:03:10 -04:00
RogueException
55c5f0dade Cleaned up extension projects, added fluent extension methods 2016-01-05 00:11:35 -04:00
RogueException
c1bee10523 Cleaned up several classes 2016-01-01 01:06:34 -04:00
RogueException
aa040193a1 Renamed User.CreateChannel to CreatePMChannel, added DiscordClient.CreatePMChannel(userId) 2015-12-31 04:24:23 -04:00
RogueException
8f4bbe66ea Don't force a bad permission message 2015-12-28 16:21:55 -04:00
RogueException
375c25c813 Improve async and reconnect stability. Added support for websocket 1012 2015-12-26 03:58:43 -04:00
RogueException
89eba9acb4 I shan't, it's Christmas! 2015-12-23 04:35:14 -04:00
RogueException
1762bf438f Fixed modules/commands compile errors 2015-12-23 03:00:46 -04:00
RogueException
82746e9207 Refactoring and fixed a few stylecop errors 2015-12-09 00:56:09 -04:00
RogueException
bdf89c91c4 Fixed some permissions issues in the built-in help. 2015-12-01 08:39:33 -04:00
RogueException
f046ed1ca7 Hide aliases from default help 2015-11-29 11:31:52 -04:00
RogueException
2e6f65b776 Changed commands to use RawText instead of Text 2015-11-29 02:39:19 -04:00
RogueException
64e6ea4173 Added GetArg(name) to CommandEventArgs 2015-11-22 20:28:51 -04:00
RogueException
f06a1d7278 Added support for custom errors from permission checkers 2015-11-10 15:37:32 -04:00
RogueException
d9759abf4c Added support for multiple commands at the same path 2015-11-10 15:04:05 -04:00
RogueException
1595150fd1 Added a few more permission checks 2015-11-09 21:05:24 -04:00