| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Clean up the codebase | Austin Hellyer | 2016-11-29 | 1 | -8/+7 |
| | | |||||
| * | Add before/after framework command hooks | Illia K | 2016-11-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These hooks will each be run prior to or after the command, and will finish execution before executing the command. These can be configured in a Framework via: ```rs client.with_framework(|f| f .before(|_context, message, _command_name| { println!("Got command '{}'", command_name); }) .after(|_context, _message, command_name| { println!("Finished command '{}'", command_name); })); ``` This does introduce a backwards compatibility break, by requiring commands' Context/Message to be borrowed Upgrade path: If not using the `command!` macro, modify command signatures from: ```rs fn some_command(context: Context, message: Message, args: Vec<String>) ``` to ```rs fn some_command(context: &Context, message: &Message, args: Vec<String>) ``` | ||||
| * | Add a bit more docs | Austin Hellyer | 2016-11-26 | 1 | -0/+1 |
| | | |||||
| * | Framework: fix command arg positioning | Austin Hellyer | 2016-11-08 | 1 | -0/+55 |
| | | | | | | | | | | | The command system assumed that prefixes were only one character long, so count the total length of the prefix. In addition, the `allow_whitespace` configuration added some difficulty in deciding where to count as the initial position to start splitting for arguments. Instead of fixing that, rewrite the framework to make these types of changes easier in the future. | ||||
| * | Add arguments to framework commands | Austin Hellyer | 2016-11-07 | 1 | -1/+1 |
| | | |||||
| * | Initial commit | Austin Hellyer | 2016-10-18 | 1 | -0/+7 |