mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 01:00: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,23 +2,23 @@
|
|||
name = "youmubot-prelude"
|
||||
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]
|
||||
anyhow = "1.0"
|
||||
async-trait = "0.1"
|
||||
futures-util = "0.3"
|
||||
tokio = { version = "1", features = ["time"] }
|
||||
anyhow = "1.0.57"
|
||||
async-trait = "0.1.56"
|
||||
futures-util = "0.3.21"
|
||||
tokio = { version = "1.19.2", features = ["time"] }
|
||||
youmubot-db = { path = "../youmubot-db" }
|
||||
youmubot-db-sql = { path = "../youmubot-db-sql" }
|
||||
reqwest = "0.11"
|
||||
chrono = "0.4"
|
||||
flume = "0.10"
|
||||
dashmap = "4"
|
||||
reqwest = "0.11.10"
|
||||
chrono = "0.4.19"
|
||||
flume = "0.10.13"
|
||||
dashmap = "5.3.4"
|
||||
|
||||
[dependencies.serenity]
|
||||
version = "0.10"
|
||||
version = "0.11.2"
|
||||
default-features = true
|
||||
features = ["collector"]
|
||||
|
|
|
@ -241,7 +241,7 @@ pub async fn register_announcer(ctx: &Context, m: &Message, mut args: Args) -> C
|
|||
.await?;
|
||||
return Ok(());
|
||||
}
|
||||
let guild = m.guild(&ctx).await.expect("Guild-only command");
|
||||
let guild = m.guild(&ctx).expect("Guild-only command");
|
||||
let channel = m.channel_id.to_channel(&ctx).await?;
|
||||
AnnouncerChannels::open(&*data)
|
||||
.borrow_mut()?
|
||||
|
@ -284,7 +284,7 @@ pub async fn remove_announcer(ctx: &Context, m: &Message, mut args: Args) -> Com
|
|||
.await?;
|
||||
return Ok(());
|
||||
}
|
||||
let guild = m.guild(&ctx).await.expect("Guild-only command");
|
||||
let guild = m.guild(&ctx).expect("Guild-only command");
|
||||
AnnouncerChannels::open(&*data)
|
||||
.borrow_mut()?
|
||||
.entry(key.clone())
|
||||
|
|
|
@ -127,7 +127,7 @@ async fn paginate_with_first_message(
|
|||
.await?;
|
||||
}
|
||||
// Build a reaction collector
|
||||
let mut reaction_collector = message.await_reactions(&ctx).removed(true).await;
|
||||
let mut reaction_collector = message.await_reactions(&ctx).removed(true).build();
|
||||
let mut page = 0;
|
||||
|
||||
// Loop the handler function.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue