# 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>
