Source code for my personal quote bot project.

Removed unneeded imports in code.

+5 -10
+5 -10
src/main.rs
··· 1 - use bsky_sdk::api::app; 2 1 use bsky_sdk::api::app::bsky::feed::post; 3 2 use bsky_sdk::api::types::string::Datetime; 4 3 use bsky_sdk::{BskyAgent, api::types::Object}; 5 4 6 5 use glob::glob; 7 - use grep::{matcher::Matcher, regex, searcher::sinks}; 8 - use rand::random_range; 6 + use grep::{regex, searcher::sinks}; 9 7 use rand::seq::SliceRandom; 10 8 use redis::aio::ConnectionManagerConfig; 11 9 12 10 use std::{sync::Arc, time::Duration}; 13 - use tokio::sync::Mutex; 14 - use tokio_cron_scheduler::{Job, JobScheduler, JobSchedulerError}; 11 + use tokio_cron_scheduler::{Job, JobScheduler}; 15 12 16 - use redis::{ 17 - AsyncCommands, Client, 18 - aio::{self, MultiplexedConnection}, 19 - }; 13 + use redis::AsyncCommands; 20 14 21 15 const DEFAULT_QUEUE: &str = "queue:default"; 22 16 const EVENT_QUEUE: &str = "queue:event"; ··· 243 237 /* 244 238 let event_filter = Arc::new(QuoteFilter { 245 239 content: r"\b(?i:mother|mommy|mama|mom)\b".to_string(), 246 - path: "test/**/*.txt".to_string(), 240 + path: "test/**/ 241 + *.txt".to_string(), 247 242 dates: vec![], 248 243 }); 249 244 */