Everything works!

This commit is contained in:
Natsu Kagami 2020-09-07 23:46:58 -04:00
parent 3b217fd5c9
commit f54f3ae1a6
Signed by: nki
GPG key ID: 73376E117CD20735
3 changed files with 6 additions and 6 deletions

6
Cargo.lock generated
View file

@ -175,7 +175,7 @@ dependencies = [
[[package]]
name = "codeforces"
version = "0.2.0"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"futures-timer 3.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1835,7 +1835,7 @@ version = "0.1.0"
dependencies = [
"Inflector 0.11.4 (registry+https://github.com/rust-lang/crates.io-index)",
"chrono 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
"codeforces 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"codeforces 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"dashmap 3.11.4 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 1.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1931,7 +1931,7 @@ dependencies = [
"checksum cc 1.0.54 (registry+https://github.com/rust-lang/crates.io-index)" = "7bbb73db36c1246e9034e307d0fba23f9a2e251faa47ade70c1bd252220c8311"
"checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
"checksum chrono 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)" = "80094f509cf8b5ae86a4966a39b3ff66cd7e2a3e594accec3743ff3fabeab5b2"
"checksum codeforces 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9bb885d82383b6b017b437b5929fa662f080b7a986231341e7d5cbf82129ba53"
"checksum codeforces 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "07443ebea310b4bbfd0c9ee79d25cf678fa1e7c82916bb32307af7a7ef1fe600"
"checksum command_attr 0.3.0-rc.0 (registry+https://github.com/rust-lang/crates.io-index)" = "093ee06b40fcba41b22ddf85de7ed33728fe2e246fcdbc1b1d3ab26f87fabf3b"
"checksum const-random 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "2f1af9ac737b2dd2d577701e59fd09ba34822f6f2ebdb30a7647405d9e55e16a"
"checksum const-random-macro 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "25e4c606eb459dd29f7c57b2e0879f2b6f14ee130918c2b78ccb58a9624e6c7a"

View file

@ -11,7 +11,7 @@ tokio = { version = "0.2", features = ["time"] }
reqwest = "0.10.1"
serenity = "0.9.0-rc.0"
Inflector = "0.11"
codeforces = "0.2"
codeforces = "0.2.1"
regex = "1"
lazy_static = "1"
chrono = { version = "0.4", features = ["serde"] }

View file

@ -76,7 +76,7 @@ async fn main() {
#[cfg(feature = "osu")]
handler.push_hook(youmubot_osu::discord::hook);
#[cfg(feature = "codeforces")]
handler.push_hook(youmubot_cf::codeforces_info_hook);
handler.push_hook(youmubot_cf::InfoHook);
// Collect the token
let token = var("TOKEN").expect("Please set TOKEN as the Discord Bot's token to be used.");
@ -123,7 +123,7 @@ async fn main() {
.expect("osu! is initialized");
// codeforces
#[cfg(feature = "codeforces")]
youmubot_cf::setup(&db_path, &mut data, &mut announcers);
youmubot_cf::setup(&db_path, &mut data, &mut announcers).await;
}
#[cfg(feature = "core")]