# Reddit

## Usage:

<table><thead><tr><th width="138.33333333333334">Command</th><th width="227">Options</th><th>Description</th></tr></thead><tbody><tr><td><code>a.reddit</code></td><td>&#x3C;subreddit> {sort} {time}</td><td>Searches for a random image from a subreddit.</td></tr></tbody></table>

### Sort Types

One of the following sort types can be added to change the list of posts Akira chooses the picture from.

| Sort Type     | Description                                      |
| ------------- | ------------------------------------------------ |
| New           | Latest posts                                     |
| Hot           | Trending posts                                   |
| Controversial | Posts with a near-equal upvote to downvote ratio |
| Top           | Most popular posts                               |
| Rising        | New posts that are doing well                    |

### Time Filters

Some sort types can have time filters applied to them to narrow down the list of posts Akira can choose from.

| Filter | Description                  |
| ------ | ---------------------------- |
| Hour   | Posts from the last hour     |
| Day    | Posts from the last 24 hours |
| Week   | Posts from the last 7 days   |
| Month  | Posts from the last month    |
| Year   | Posts from the last year     |
| All    | All posts                    |

{% hint style="info" %}
Time filters can only be applied to the `controversial` and `top` sort types.
{% endhint %}

## Example:

<table><thead><tr><th width="318">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>a.reddit askreddit top week</code></td><td>Gives a random image from the subreddit askreddit filtered by most popular posts from the last week.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.lynnux.xyz/akira/search/reddit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
