aboutsummaryrefslogtreecommitdiff
path: root/src/wisp.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2020-10-29 23:50:10 -0700
committerFuwn <[email protected]>2020-10-29 23:50:10 -0700
commitc20c9a59a1d487286116809856497fa089781659 (patch)
tree9be2c51c61ec355df471d1d6fc3b809d354e64c4 /src/wisp.rs
parentfeat, annotate, chore (desc) (diff)
downloaddep-core-next-c20c9a59a1d487286116809856497fa089781659.tar.xz
dep-core-next-c20c9a59a1d487286116809856497fa089781659.zip
feat, chore, doc
feat: - implement rocket webserver (switch to rust nightly) - implement basic voice handling (outdated as i will probably be adding lavalink soon) chore: - specify rust toolchain in `rust-toolchain` file. - tidy up code a tiny bit doc: - add cc enviroment variables to file for future reference. - thicken readme.md (useless tbh)
Diffstat (limited to 'src/wisp.rs')
-rw-r--r--src/wisp.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wisp.rs b/src/wisp.rs
index f3ffd9b..e1f2310 100644
--- a/src/wisp.rs
+++ b/src/wisp.rs
@@ -9,6 +9,7 @@ use serenity::Error as SerenityError;
use serenity::http;
use serenity::model::id::UserId;
use serenity::prelude::{Client, Mutex};
+// use serenity::voice;
use std::collections::HashSet;
use std::env;
use std::sync::Arc;
@@ -25,6 +26,7 @@ impl WispClient {
data.insert::<SerenityShardManager>(Arc::clone(&client.shard_manager));
data.insert::<ApiClient>(Arc::new(api_client));
data.insert::<TC>(Arc::new(Mutex::new(tc)));
+ // data.insert::<VoiceManager>(Arc::clone(&client.voice_manager));
}
let owners = match http::get_current_application_info() {
Ok(info) => {
@@ -50,6 +52,7 @@ impl WispClient {
data.insert::<SerenityShardManager>(Arc::clone(&client.shard_manager));
data.insert::<ApiClient>(Arc::new(api_client));
data.insert::<TC>(Arc::new(Mutex::new(tc)));
+ // data.insert::<VoiceManager>(Arc::clone(&client.voice_manager));
}
client.with_framework(WispFramework::new(owners));
WispClient(client)