This commit is contained in:
parent
7b4a83f103
commit
6d367e21ce
@ -162,6 +162,7 @@ pub async fn bite(
|
||||
pub async fn deer(ctx: Context<'_>) -> Result<(), Error> {
|
||||
let subreddit = Subreddit::new("deer");
|
||||
let options = FeedOption::new().period(TimePeriod::ThisYear);
|
||||
trace!("Created subreddit and options, about to poll for hot posts...");
|
||||
let hot = subreddit.hot(50, Some(options)).await?;
|
||||
trace!("Got hot post collection...");
|
||||
let chosen_post = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user