diamondburned
afc87adbae
Bot: Refactored accordingly to State's new Store API
2020-11-29 17:19:59 -08:00
diamondburned
273fcf1418
Bot: Added subcommand aliases and better setup API
...
This commit adds subcommand aliases as well as additional code in
HelpGenerate to cover for both subcommand and command aliases.
A breaking change is that {,Must}RegisterSubcommandCustom methods are
now replaced with normal {,Must}RegisterSubcommand methods. This is
because they now use variadic strings, which could take 0, 1 or more
arguments.
This commit also allows AddMiddleware and similar methods to be given a
method directly:
sub.Plumb(cmds.PlumbedHandler)
sub.AddMiddleware(cmds.PlumbedHandler, cmds.plumbMiddleware)
This change closes issue #146 .
2020-11-12 19:02:52 -08:00
diamondburned
9899f6073b
Bot: Added automatic Intents detection from handlers
...
This commit adds automatic Intents detection into package bot. When the
Start function is used, the intents will be OR'd after running the
options callback.
This commit also breaks the old "AddIntent" methods to rename them to
"AddIntents" for correctness.
2020-10-28 22:49:18 -07:00
diamondburned
75df94d9f4
*: Migrated Go Modules to v2
2020-10-28 15:39:59 -07:00
Maximilian von Lindern
1585797b52
*: Linting and typo fixes ( #134 )
...
* Linting and typo fixes
* Linting and typo fixes
* revert comma fix
2020-07-29 16:58:33 -07:00
mavolin
ba4b224168
handler: move package from /handler to /utils/handler
2020-07-29 16:58:33 -07:00
mavolin
41ce1f389e
make all error messages lowercase
2020-05-16 23:14:49 +02:00
diamondburned
729979088c
Bot: Added more tests and the Help API
2020-05-14 14:04:18 -07:00
diamondburned (Forefront)
e556d2afad
Bot: Partially implemented middlewares
2020-05-14 13:59:17 -07:00
diamondburned (Forefront)
67430c6d7a
Bot: Added Plumb support, fixed tests
...
Merged
Merged
2020-05-14 13:59:17 -07:00
diamondburned (Forefront)
964e8cdf13
Bot: Partially implemented middlewares
2020-05-14 13:59:17 -07:00
diamondburned (Forefront)
85c1326526
Bot: Added ArgsParser for each Context instead of global
2020-05-05 23:23:52 -07:00
diamondburned (Forefront)
7dbdc78d67
Bot: Added package infer for getting IDs from unknown structs
2020-05-05 23:15:25 -07:00
diamondburned (Forefront)
25ecbb0ca5
Bot: Fixed RawArguments, added more tests for that
2020-05-03 23:48:12 -07:00
diamondburned (Forefront)
90bf9d74e3
Bot: Fixed bug where RawArguments still have the command
2020-05-03 22:57:44 -07:00
diamondburned (Forefront)
4a14c4d059
Bot: Allow variadic functions to have empty trailing arguments
2020-05-03 21:22:19 -07:00
diamondburned (Forefront)
b122aa6561
Bot: Added trailing manual parser support
2020-05-03 18:33:24 -07:00
diamondburned (Forefront)
3b903dce68
Bot: Added variadic arguments support
2020-05-03 15:59:10 -07:00
diamondburned (Forefront)
748ad5641c
API: Added AllowedMentions and more tests
2020-04-19 16:35:37 -07:00
diamondburned (Forefront)
7905e2138b
Fixed tests that broke because of previous breaking change
2020-04-12 16:24:28 -07:00
diamondburned (Forefront)
9fefba18f7
Bot: Fixed tests to pass with the new Prefixer API
2020-04-06 13:31:27 -07:00
diamondburned (Forefront)
0cd486fc38
Revert "Gateway: State refactored into smaller components"
...
This reverts commit 11465c62bd
.
2020-02-29 18:54:14 -08:00
diamondburned (Forefront)
11465c62bd
Gateway: State refactored into smaller components
2020-02-29 18:50:50 -08:00
diamondburned (Forefront)
1e95e108c8
Bot: added more tests
2020-02-04 21:19:45 -08:00
diamondburned (Forefront)
9d3528190f
Bot: added Plumb flag, methods no longer need arguments be pointers
2020-01-25 21:43:42 -08:00
diamondburned
367f445ee9
Fixed bugs in the bot package
...
Bugs include: Events not being called, inconsistent subcommand casing
2020-01-24 08:08:12 -08:00
diamondburned
aadcbd0767
Added middleware features into package bot. ( #3 )
...
* Middleware nameflag
* Completed M-Middleware feature
* Changed Namer/Descriptor API to CanSetup API
2020-01-23 19:17:03 -08:00
diamondburned (Forefront)
ff0bc7b98b
Tweaks to tests and CI
2020-01-20 03:15:41 -08:00
diamondburned (Forefront)
28228a60f5
Ported rfrouter over
2020-01-18 22:06:00 -08:00