aboutsummaryrefslogtreecommitdiff
path: root/src/wisp.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2020-11-02 16:31:17 -0800
committerFuwn <[email protected]>2020-11-02 16:31:17 -0800
commit11e768178d08d631b38703d8cc38f2aa9ff83cdb (patch)
tree858729a395e8e661bc6e425464d4dd022c95054a /src/wisp.rs
parentchore/ fix: commit file that i forgot to commit (diff)
downloaddep-core-next-11e768178d08d631b38703d8cc38f2aa9ff83cdb.tar.xz
dep-core-next-11e768178d08d631b38703d8cc38f2aa9ff83cdb.zip
refactor, chore, feat (desc)
refactor: - `Cargo.toml` openssl patch - rename `DBOTS_TOKEN` environment variable feat: - new `wisp` command information - support server, bot invite, feature request, bot discovery sites. - use `CARGO_PKG_VERSION` environment variable to show version in presence. - `privacypolicy` command - prime more of the rocket webserver
Diffstat (limited to 'src/wisp.rs')
-rw-r--r--src/wisp.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wisp.rs b/src/wisp.rs
index 28b87c7..d7f88c3 100644
--- a/src/wisp.rs
+++ b/src/wisp.rs
@@ -5,10 +5,7 @@ use crate::core::{
framework::WispFramework,
timers
};
-// use crate::webserver::{
-// model::*,
-// rocket::*
-// };
+// use crate::webserver::rocket::*;
use serenity::Error as SerenityError;
use serenity::http;
use serenity::model::id::UserId;
@@ -17,6 +14,7 @@ use serenity::prelude::{Client, Mutex};
use std::collections::HashSet;
use std::env;
use std::sync::Arc;
+// use std::thread;
pub struct WispClient(Client);
impl WispClient {
@@ -53,6 +51,9 @@ impl WispClient {
// let _ = start_rocket(bot_clone);
// });
// }
+ // thread::spawn(move || {
+ // let _ = start_rocket();
+ // });
client.with_framework(WispFramework::new(owners));
WispClient(client)