Commit Graph

408 Commits

Author SHA1 Message Date
FiniteReality
cddc39dfa1 Don't add multiple spaces for multiple groups 2016-08-31 15:05:31 +01:00
FiniteReality
1ab763e157 Allow parameterless commands to build correctly
Resolves #253
2016-08-31 14:07:35 +01:00
FiniteReality
42e127ac85 Resolve #251 2016-08-30 00:26:34 +01:00
Joe4evr
bd8a601e17 Replace locking on 'this'. 2016-08-29 16:17:52 +02:00
FiniteReality
4848f307d3 Fix #244 and use the correct string 2016-08-29 14:56:43 +01:00
RogueException
ab42129eb9 Include which command failed to build on exception 2016-08-28 03:44:45 -03:00
RogueException
23a0316252 Split IMessage into IUserMessage and ISystemMessage 2016-08-27 19:07:22 -03:00
RogueException
5ee9ca5c31 Merge pull request #230 from FiniteReality/feature/command_aliases
Implement Command Aliases
2016-08-27 17:35:41 -03:00
FiniteReality
94dc123e8d Use aliases while removing from the CommandMap 2016-08-27 19:49:27 +01:00
RogueException
f2c38567b6 Fixed ChannelTypeReader by mention 2016-08-27 08:21:16 -03:00
Master Kwoth
2cd97bd594 Fixed IRole typereader ref #229 2016-08-27 03:27:10 +02:00
FiniteReality
95cf63243d Implement Command Aliases
This implementation could probably be more efficient, but I
opted for clarity and simplicity where possible.
2016-08-26 22:28:35 +01:00
RogueException
01c4771217 Update version to beta 2016-08-25 23:32:48 -03:00
RogueException
f6d8659a2e Removed ParamList null checks 2016-08-21 21:47:32 -03:00
RogueException
40da0241c8 Merge pull request #219 from RogueException/khio-patch
Fixed NullRef
2016-08-21 21:43:59 -03:00
Khionu Terabite
ad54be8790 Changed Parameter Summary from pulling DescriptionAttribute to SummaryAttribute 2016-08-21 18:27:36 -04:00
Khionu Terabite
2e43b6b08b Fixed NullRef 2016-08-21 16:43:22 -04:00
RogueException
99e9c36a69 Fixed nullrefs in command parsing 2016-08-21 11:07:32 -03:00
RogueException
324664917d Added new parameter scoring, support multiple matches 2016-08-21 11:03:50 -03:00
RogueException
ed7710fbef Optimize lib for release builds 2016-08-20 22:37:33 -03:00
RogueException
cc9e1c1a65 Improve array conversion for paramslist 2016-08-20 20:57:25 -03:00
FiniteReality
610a3a26ab Add DI support to command Groups 2016-08-20 21:06:13 +01:00
RogueException
9951112908 Readded AutoLoad setter 2016-08-18 20:21:36 -03:00
RogueException
e1da83e2c7 Merge pull request #205 from FiniteReality/issue/202
Add Prefix property to Module
2016-08-18 11:31:41 -03:00
RogueException
06e81cbcca Merge pull request #206 from FiniteReality/issue/203
Add NameAttribute for overriding Name in commands/modules
2016-08-18 11:30:13 -03:00
RogueException
6d766d5f98 Cleaned up command attributes 2016-08-18 11:28:12 -03:00
FiniteReality
252d89000d Fix comment copy+paste fail 2016-08-18 14:09:47 +01:00
FiniteReality
8b864d4b9e Fix #203 by adding a NameAttribute to override Name 2016-08-18 13:50:02 +01:00
FiniteReality
83f0e85883 Fix #202 by adding a Prefix property 2016-08-18 13:45:58 +01:00
RogueException
0b25554c31 Unknown overload should return UnknownCommand instead of ParseFailed 2016-08-17 10:07:26 -03:00
RogueException
9bef81e600 Improve exception for parameterless commands. 2016-08-16 01:44:50 -03:00
RogueException
ac49f4b8b0 Rename RequirePermission -> RequirePermissionAttribute 2016-08-16 00:42:59 -03:00
RogueException
fc17aa3ea0 Remove guild check from Message.Resolve 2016-08-14 11:31:49 -03:00
RogueException
94d6acc00e Exposed reflection classes on commands, modules and parameters 2016-08-12 06:36:06 -03:00
RogueException
63d3b93975 Removed Discord.Commands.Attributes.Preconditions namespace 2016-08-09 23:44:10 -03:00
RogueException
dcb603acd7 Cleaned up permission checks, added Permissions.Has(enum) methods 2016-08-09 18:18:50 -03:00
RogueException
e452aa9662 Cleaned up Command Result structs 2016-08-09 17:53:08 -03:00
RogueException
0b9f9b16a9 Merge pull request #178 from DigiTechs/command_tweaks
Command tweaks
2016-08-09 17:31:10 -03:00
RogueException
2b9600686f Merge pull request #179 from DigiTechs/feature/172
Preconditions for commands
2016-08-09 17:30:25 -03:00
Finite Reality
f7633ea3d7 Revert 3856d43 & rename CommandParameter.Description to Summary 2016-08-09 16:37:56 +01:00
Finite Reality
f2d80de343 Fix error with RequirePermission precondition 2016-08-07 17:23:26 +01:00
Finite Reality
c77c84bec7 Remove ContextType.Invalid 2016-08-06 00:43:11 +01:00
Finite Reality
6db3f52ac1 eplace DM/Guild preconditions with context
The new RequireContextAttribute works just like RequireDM/RequireGuild,
but is more powerful as developers can specify multiple 'contexts' for
their command to require using the ContextType flags.
2016-08-06 00:15:11 +01:00
RogueException
f6931d4b8a Ignore doc warnings during Release build 2016-08-05 16:29:08 -03:00
Joe4evr
911faaf29e Include XML Docs when building. 2016-08-05 19:13:26 +02:00
Finite Reality
86092f9253 Rename Synopsis to Summary to improve clarity 2016-08-05 00:17:29 +01:00
Finite Reality
11f1163ec2 Add Command and module instance parameters to CheckPermissions
After a small discussion with Joe4evr on discord, a way of retrieving the
state of a module appeared to be needed. The new override should provide
enough context to a bot dev to allow them to do what they want.
2016-08-04 23:31:21 +01:00
Finite Reality
1e72eca34a Remove Preconditions check from Command.Execute
Preconditions are still handled by CommandService.Execute
2016-08-04 21:48:44 +01:00
Finite Reality
046d56cab5 Add module-level preconditions and precondition for individual permissions 2016-08-04 19:36:14 +01:00
Finite Reality
0e920da21f Complete Preconditions implementation 2016-08-03 17:21:38 +01:00