This commit is contained in:
parent
6d367e21ce
commit
1663ff2477
1192
Cargo.lock
generated
1192
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
18
Cargo.toml
18
Cargo.toml
@ -10,20 +10,20 @@ build = "build.rs"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[build-dependencies]
|
||||
vergen = { version = "9.0.6", features = ["build", "cargo", "rustc"] }
|
||||
anyhow = "1.0.98"
|
||||
anyhow = "1.0.104"
|
||||
|
||||
[dependencies]
|
||||
dotenvy = "0.15.0"
|
||||
log = "0.4.25"
|
||||
poise = "0.6.1"
|
||||
log = "0.4.33"
|
||||
poise = "0.6.2"
|
||||
pretty_env_logger = "0.5.0"
|
||||
tokio = { version = "1.45", features = ["macros", "rt-multi-thread"] }
|
||||
rand = "0.9.1"
|
||||
serde = { version = "1.0.219", features = ["serde_derive"] }
|
||||
serde_json = "1.0.140"
|
||||
roux = "2.2.13"
|
||||
tokio = { version = "1.53.1", features = ["macros", "rt-multi-thread"] }
|
||||
rand = "0.10.2"
|
||||
serde = { version = "1.0.229", features = ["serde_derive"] }
|
||||
serde_json = "1.0.151"
|
||||
roux = "2.2.15"
|
||||
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 }
|
||||
tempfile = { version = "3.20.0", optional = true }
|
||||
self-replace = { version = "1.5.0", optional = true }
|
||||
|
||||
@ -4,7 +4,7 @@ use crate::Context;
|
||||
use crate::Error;
|
||||
use poise::serenity_prelude as serenity;
|
||||
use rand::seq::IndexedRandom;
|
||||
use rand::Rng;
|
||||
use rand::RngExt;
|
||||
|
||||
use roux::util::{FeedOption, TimePeriod};
|
||||
use roux::Subreddit;
|
||||
@ -175,7 +175,7 @@ pub async fn deer(ctx: Context<'_>) -> Result<(), Error> {
|
||||
trace!("Got chosen hot post!");
|
||||
ctx.say(format!(
|
||||
"https://vxreddit.com{}",
|
||||
&chosen_post.data.permalink
|
||||
chosen_post.data.permalink
|
||||
))
|
||||
.await?;
|
||||
info!("Executed command `deer` successfully");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use poise::serenity_prelude as serenity;
|
||||
use rand::Rng;
|
||||
use rand::RngExt;
|
||||
|
||||
use crate::Context;
|
||||
use crate::Error;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
const SLOP_SCOUNDREL_SERVER_ID: u64 = 752667089155915846;
|
||||
const SLOP_SCOUNDREL_ROLE_ID: u64 = 1508961172223951078;
|
||||
|
||||
use rand::{self, seq::IndexedRandom, Rng};
|
||||
use rand::{self, seq::IndexedRandom, RngExt};
|
||||
|
||||
const HATE: [&str; 11] = [
|
||||
"kys sloplord",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user