aboutsummaryrefslogtreecommitdiff
path: root/src/client
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a documentation typoZeyla Hellyer2017-09-191-1/+1
|
* Also rustfmtZeyla Hellyer2017-09-181-1/+3
|
* Fix block on spawning multiple shardsZeyla Hellyer2017-09-183-22/+28
| | | | | | | | | | | | When spawning multiple shards (via an equal number of futures - one per shard) joined on a core.run use, the very first future executed would block forever due to a sync, blocking `monitor_shard` use. While this defeats the purpose of tokio, this was meant to be a first step to an async serenity implementation. To "fix" this blocking call until a deeper async implementation is made, spawn a new thread per tokio core (and thus per shard). This causes the same expected behaviour, just with multiple threads like before.
* Apply rustfmtZeyla Hellyer2017-09-182-66/+17
|
* Fix compiles of a variety of feature combinationsZeyla Hellyer2017-09-182-24/+15
| | | | | This fixes compilation errors and warnings when compiling a mixture of non-default feature targets.
* Revamp `CacheEventsImpl`acdenisSK2017-09-121-69/+59
|
* Copy some methods from Command to Group (#164)Maiddog2017-09-111-1/+4
|
* Add `Context::handle`acdenisSK2017-09-112-44/+48
|
* Implement categoriesacdenisSK2017-09-092-0/+15
|
* Change order to avoid subtraction overflow error (#160)Maiddog2017-09-071-1/+1
|
* Add a way for users to get ShardsZeyla Hellyer2017-09-051-0/+56
| | | | | | Add a HashMap which contains the shards, keyed by the shard ID with the value as the shard. This allows for manual interaction outside of event handlers.
* Prevent malformed opus data from crashing the bot process (#149)Maiddog2017-08-272-76/+84
|
* Add ability to play DCA and Opus files. (#148)Maiddog2017-08-273-24/+73
|
* Revamp `RwLock` usage in the libacdenisSK2017-08-243-151/+102
| | | | Also not quite sure if they goofed rustfmt or something, but its changes it did were a bit bizarre.
* Move builtin framework impl to its own moduleZeyla Hellyer2017-08-192-5/+5
| | | | | | | | | | | | | | | | | The framework is now moved in its entirity to the `framework` module, with the `Framework` trait currently on its own and the builtin implementation provided. The builtin implementation has been renamed to "Standard". Upgrade path: Rename the `BuiltinFramework` import to `StandardFramework`. Instead of importing builtin framework items from `serenity::framework`, import them from `serenity::framework::standard`. This is the beginning to #60. The root `framework` module (non-standard implementation) will be built more by the time it's closed.
* Apply rustfmtZeyla Hellyer2017-08-182-14/+62
|
* Move the Framework trait to the frameworkZeyla Hellyer2017-08-182-3/+3
|
* Split event handling in the cache to a traitacdenisSK2017-08-101-18/+4
| | | | note: This trait might become like `framework::Framework` in the future.
* Clippy and rustfmtacdenisSK2017-08-011-6/+6
|
* Remove a few clonesacdenisSK2017-07-291-5/+6
|
* Change the config a bit, and a few nitpicksacdenisSK2017-07-272-25/+35
|
* rustfmtacdenisSK2017-07-275-161/+156
|
* Use a consistent indentation styleZeyla Hellyer2017-07-261-18/+18
| | | | | | | | | This project has - in the past - used an indentation style of 4 spaces, without trailing whitespace. This commit modifies lines with tab indentation to 4 spaces. Whether to use tabs or spaces is up to the current maintainer, but consistency avoids files eventually being completely mixed styles.
* Make the `framework` module feature-gated and fix the names in the helper macroacdenisSK2017-07-272-6/+6
|
* Fix condional compilation for `Framework::initialized` when ↵acdenisSK2017-07-271-18/+22
| | | | builtin-framework is turned off
* PhantomData begoneacdenisSK2017-07-231-1/+0
|
* Fix #130acdenisSK2017-07-222-91/+102
| | | | Removed action support from the builtin one as well, due to it adding some uneccassery complexity and it being only asked upon by one user
* Fix event handler dispatchingacdenisSK2017-07-171-7/+11
|
* Make CloseHandle derive Copy (#127)Jorge Israel Peña2017-07-161-1/+1
|
* Handle the closing of Shards (#126)Jorge Israel Peña2017-07-161-3/+16
|
* Possibly fix the closing of shardsacdenisSK2017-07-161-2/+1
|
* Add a close handle for closing the shards in another threadacdenisSK2017-07-161-4/+13
|
* Actually, revert the publicity and add `#[derive(Clone)]`acdenisSK2017-07-161-1/+2
|
* Make `HANDLE_STILL` publicacdenisSK2017-07-161-1/+1
|
* Remove more threads with futuresacdenisSK2017-07-152-29/+28
|
* Add a way to close all shards explictlyacdenisSK2017-07-141-22/+36
|
* Switch to tokio for events (#122)Alex Lyon2017-07-143-103/+268
|
* Remove the deprecated functionsacdenisSK2017-07-111-18/+0
| | | | It's already been enough time for people to migrate
* Fixed clippy warnings (#120)Kaidan2017-07-101-1/+1
|
* Apply the new api change for dms in botsacdenisSK2017-07-072-7/+23
|
* Add an `is_new` to the arguments of the `guild_create` handleracdenisSK2017-07-052-2/+15
| | | | To make a better distinction from a guild that the bot's already in and from the ones it's joining
* Add a macro hereacdenisSK2017-07-031-48/+32
|
* Fix doc testsacdenisSK2017-07-022-93/+175
|
* Add a `quit` function`acdenisSK2017-06-301-0/+11
| | | | Fixes #70
* Whoops, and add a fail-safe to an upcomming pr to the compileracdenisSK2017-06-283-145/+50
| | | | https://github.com/rust-lang/rust/pull/42894
* Update readme, docs and add `EventHandler` to the preludeacdenisSK2017-06-281-19/+31
|
* Merge branch "trait-based-event-handling"acdenisSK2017-06-283-937/+322
|
* Add reaction actions (#115)alex2017-06-281-16/+87
| | | Fixes #87
* Add an `on_cached` event (#114)alex2017-06-283-8/+76
| | | | Fixes #89
* Docs fixesmei2017-06-271-2/+1
|