mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 09:10:49 +00:00
Massive dependencies bump
This commit is contained in:
parent
dd1867e222
commit
8632f0e99c
24 changed files with 744 additions and 841 deletions
|
@ -2,20 +2,20 @@
|
|||
name = "youmubot-cf"
|
||||
version = "0.1.0"
|
||||
authors = ["Natsu Kagami <natsukagami@gmail.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[dependencies]
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
tokio = { version = "1", features = ["time"] }
|
||||
reqwest = "0.11"
|
||||
serenity = "0.10"
|
||||
Inflector = "0.11"
|
||||
codeforces = "0.3"
|
||||
regex = "1"
|
||||
lazy_static = "1"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
dashmap = "4"
|
||||
serde = { version = "1.0.137", features = ["derive"] }
|
||||
tokio = { version = "1.19.2", features = ["time"] }
|
||||
reqwest = "0.11.10"
|
||||
serenity = "0.11.2"
|
||||
Inflector = "0.11.4"
|
||||
codeforces = "0.3.1"
|
||||
regex = "1.5.6"
|
||||
lazy_static = "1.4.0"
|
||||
chrono = { version = "0.4.19", features = ["serde"] }
|
||||
dashmap = "5.3.4"
|
||||
|
||||
youmubot-prelude = { path = "../youmubot-prelude" }
|
||||
youmubot-db = { path = "../youmubot-db" }
|
||||
|
|
|
@ -56,7 +56,7 @@ impl youmubot_prelude::Announcer for Announcer {
|
|||
"Codeforces: Removing user {} - {}: failures count too high",
|
||||
key, user.handle,
|
||||
);
|
||||
db.remove(&key);
|
||||
// db.remove(&key);
|
||||
} else {
|
||||
db.insert(key, user);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ pub fn user_embed<'a>(user: &User, e: &'a mut CreateEmbed) -> &'a mut CreateEmbe
|
|||
.join(", ");
|
||||
e.color(user.color())
|
||||
.author(|a| a.name(&rank))
|
||||
.thumbnail(format!("https:{}", user.title_photo))
|
||||
.thumbnail(format!("{}", user.title_photo))
|
||||
.title(&user.handle)
|
||||
.url(user.profile_url())
|
||||
.description(format!(
|
||||
|
@ -90,7 +90,7 @@ pub fn rating_change_embed<'a>(
|
|||
};
|
||||
|
||||
e.author(|a| {
|
||||
a.icon_url(format!("http:{}", &user.avatar))
|
||||
a.icon_url(format!("{}", &user.avatar))
|
||||
.url(user.profile_url())
|
||||
.name(&user.handle)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue