Repository is archived
No commit activity in last 3 years
No release in over 3 years
Lita handler to fetch images from reddit.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 3.0.0

Runtime

>= 4.8
 Project Readme

lita-reddit-image

Lita handler for querying images from Reddit.

Installation

Add lita-reddit-image to your Lita instance's Gemfile:

gem "lita-reddit-image"

Configuration

Only 2 required parameters:

  • Your Reddit username
  • Your Reddit App Id

Create a new Reddit App and get an App Id.

Your username is used in the User-Agent headers for querying the Reddit API, as requested by Reddit developers.

Lita.configure do |config|
  config.handlers.reddit_image.app_id = "reddit_developer_app_id"
  config.handlers.reddit_image.username = "reddit_username"
end

Usage

Use the following syntax: /r/[subreddit] [query] to fetch an image from Reddit.

Ex. Get a nice happy bunny from /r/aww 🐇

Lita /r/aww Bunny