Update crate versions
All checks were successful
Rust / check (push) Successful in 2m46s

This commit is contained in:
August 2026-07-22 23:29:16 +00:00
parent 6d367e21ce
commit 1663ff2477
Signed by: shibedrill
SSH Key Fingerprint: SHA256:M0m3JW1s38BgO2t0fG146Yxd9OJ2IOqkvCAsuRHQ6Pw
5 changed files with 557 additions and 661 deletions

1192
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -10,20 +10,20 @@ build = "build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies] [build-dependencies]
vergen = { version = "9.0.6", features = ["build", "cargo", "rustc"] } vergen = { version = "9.0.6", features = ["build", "cargo", "rustc"] }
anyhow = "1.0.98" anyhow = "1.0.104"
[dependencies] [dependencies]
dotenvy = "0.15.0" dotenvy = "0.15.0"
log = "0.4.25" log = "0.4.33"
poise = "0.6.1" poise = "0.6.2"
pretty_env_logger = "0.5.0" pretty_env_logger = "0.5.0"
tokio = { version = "1.45", features = ["macros", "rt-multi-thread"] } tokio = { version = "1.53.1", features = ["macros", "rt-multi-thread"] }
rand = "0.9.1" rand = "0.10.2"
serde = { version = "1.0.219", features = ["serde_derive"] } serde = { version = "1.0.229", features = ["serde_derive"] }
serde_json = "1.0.140" serde_json = "1.0.151"
roux = "2.2.13" roux = "2.2.15"
structstruck = "0.5.0" structstruck = "0.5.0"
reqwest = { version = "0.13.1", features = ["json"] } reqwest = { version = "0.13.4", features = ["json"] }
octocrab = { version = "0.49.5", optional = true } octocrab = { version = "0.49.5", optional = true }
tempfile = { version = "3.20.0", optional = true } tempfile = { version = "3.20.0", optional = true }
self-replace = { version = "1.5.0", optional = true } self-replace = { version = "1.5.0", optional = true }

View File

@ -4,7 +4,7 @@ use crate::Context;
use crate::Error; use crate::Error;
use poise::serenity_prelude as serenity; use poise::serenity_prelude as serenity;
use rand::seq::IndexedRandom; use rand::seq::IndexedRandom;
use rand::Rng; use rand::RngExt;
use roux::util::{FeedOption, TimePeriod}; use roux::util::{FeedOption, TimePeriod};
use roux::Subreddit; use roux::Subreddit;
@ -175,7 +175,7 @@ pub async fn deer(ctx: Context<'_>) -> Result<(), Error> {
trace!("Got chosen hot post!"); trace!("Got chosen hot post!");
ctx.say(format!( ctx.say(format!(
"https://vxreddit.com{}", "https://vxreddit.com{}",
&chosen_post.data.permalink chosen_post.data.permalink
)) ))
.await?; .await?;
info!("Executed command `deer` successfully"); info!("Executed command `deer` successfully");

View File

@ -1,5 +1,5 @@
use poise::serenity_prelude as serenity; use poise::serenity_prelude as serenity;
use rand::Rng; use rand::RngExt;
use crate::Context; use crate::Context;
use crate::Error; use crate::Error;

View File

@ -1,7 +1,7 @@
const SLOP_SCOUNDREL_SERVER_ID: u64 = 752667089155915846; const SLOP_SCOUNDREL_SERVER_ID: u64 = 752667089155915846;
const SLOP_SCOUNDREL_ROLE_ID: u64 = 1508961172223951078; const SLOP_SCOUNDREL_ROLE_ID: u64 = 1508961172223951078;
use rand::{self, seq::IndexedRandom, Rng}; use rand::{self, seq::IndexedRandom, RngExt};
const HATE: [&str; 11] = [ const HATE: [&str; 11] = [
"kys sloplord", "kys sloplord",