-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15538fb
commit cef737b
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Media Reliability Bot | ||
|
||
Extract sources from Reddit post titles, urls and descriptions. Assigns flairs with corresponding tiers, and creates a media reliability report as a comment. | ||
|
||
Check u/mediareliability to see the bot in action. | ||
|
||
# Setup | ||
|
||
1. Generate your source list here: | ||
|
||
- https://www.jsonschemavalidator.net/s/1B8Jm00x | ||
|
||
| key | type | description | | ||
| :----------: | :-----------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------: | | ||
| id | `string` | unique id | | ||
| name | `string` | name of the journalist, media or aggregator | | ||
| nameIsCommon | `boolean` | whether the name contains common words (eg. `sport`, `sun`). used to avoid false positives when searching text and titles | | ||
| tier | `official`, `1`, `2`, `3`, `4`, `5`, `aggregator` | the tier of the entry | | ||
| handles | `string[]` | array of social media handles | | ||
| domains | `string[]` | array of domains (do not include www or subdomains) | | ||
| aliases | `string[]` | array of aliases | | ||
|
||
See a complete example here: | ||
|
||
https://github.com/barca-reddit/barca-reddit.github.io/blob/master/packages/db/data/devvit-sources.json | ||
|
||
2. Visit the app settings here: | ||
|
||
https://developers.reddit.com/r/YOUR_SUBREDDIT_NAME/apps/mediareliability | ||
|
||
3. Paste the source list in first field (make sure the JSON is properly formatted) | ||
|
||
--- | ||
|
||
If you have any questions, feel free to message /u/decho on Reddit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
name: mediareliability | ||
version: 0.0.9 | ||
version: 0.0.10 |