tangled
alpha
login
or
join now
crashkeys.dev
/
audquotes
0
fork
atom
Source code for my personal quote bot project.
0
fork
atom
overview
issues
pulls
pipelines
Removed unneeded imports in code.
ironballista
5 months ago
d3eafc8b
36b2a4e2
+5
-10
1 changed file
expand all
collapse all
unified
split
src
main.rs
+5
-10
src/main.rs
···
1
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
7
-
use grep::{matcher::Matcher, regex, searcher::sinks};
8
8
-
use rand::random_range;
6
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
13
-
use tokio::sync::Mutex;
14
14
-
use tokio_cron_scheduler::{Job, JobScheduler, JobSchedulerError};
11
11
+
use tokio_cron_scheduler::{Job, JobScheduler};
15
12
16
16
-
use redis::{
17
17
-
AsyncCommands, Client,
18
18
-
aio::{self, MultiplexedConnection},
19
19
-
};
13
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
246
-
path: "test/**/*.txt".to_string(),
240
240
+
path: "test/**/
241
241
+
*.txt".to_string(),
247
242
dates: vec![],
248
243
});
249
244
*/