Skip to content

Commit

Permalink
feat(devvit): add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuallyunknown committed Jan 28, 2025
1 parent 15538fb commit cef737b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions packages/devvit/README.md
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.
2 changes: 1 addition & 1 deletion packages/devvit/devvit.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: mediareliability
version: 0.0.9
version: 0.0.10

0 comments on commit cef737b

Please sign in to comment.