> For the complete documentation index, see [llms.txt](https://documentation.lynnux.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.lynnux.xyz/akira/search/reddit.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
