lita-reddit-image 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -5
- data/lib/lita/handlers/reddit_image.rb +1 -0
- data/lib/lita/handlers/reddit_image/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 549cba4775ad2765b59ea02a2f7d986483e9cf1815e2e807cff01cbb2134f064
|
4
|
+
data.tar.gz: d2c3610f8aceff5760cc5e87427ae3781eec7679da7250d771bbbcdcf83307e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9ebbc8db996fd979c173d956bc428d694406b1ba6878e7f138b45981ceb32d0cb73611569eb1a010ff0f4a665331ef69f71271c5fe382c784fba42edc104a5c
|
7
|
+
data.tar.gz: 4e6321a172bdb2d10217c133ed42538025950f821d9566b2a0eced6946b44b5a5c510363ca89f674d243b3a03c60895d17537a16759d23e6ec014dad51cf1715
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# lita-reddit-image
|
2
2
|
|
3
|
-
Lita handler for querying images from Reddit
|
4
|
-
|
5
|
-
TODO: Add a description of the plugin.
|
3
|
+
Lita handler for querying images from Reddit.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -14,8 +12,28 @@ gem "lita-reddit-image"
|
|
14
12
|
|
15
13
|
## Configuration
|
16
14
|
|
17
|
-
|
15
|
+
Only 2 required parameters:
|
16
|
+
* Your Reddit username
|
17
|
+
* Your Reddit App Id
|
18
|
+
|
19
|
+
Create a new Reddit App and get an App Id.
|
20
|
+
|
21
|
+
Your username is used in the User-Agent headers for querying the Reddit API, as
|
22
|
+
requested by Reddit developers.
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
Lita.configure do |config|
|
26
|
+
config.handlers.reddit_image.app_id = "reddit_developer_app_id"
|
27
|
+
config.handlers.reddit_image.username = "reddit_username"
|
28
|
+
end
|
29
|
+
```
|
18
30
|
|
19
31
|
## Usage
|
20
32
|
|
21
|
-
|
33
|
+
Use the following syntax: `/r/[subreddit] [query]` to fetch an image from Reddit.
|
34
|
+
|
35
|
+
Ex. Get a nice happy bunny from /r/aww 🐇
|
36
|
+
|
37
|
+
```
|
38
|
+
Lita /r/aww Bunny
|
39
|
+
```
|