https://github.com/realcyguy/mlapibot
https://github.com/realcyguy/mlapibot
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/realcyguy/mlapibot
- Owner: RealCyGuy
- License: mit
- Created: 2020-06-03T21:12:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T09:41:40.000Z (about 6 years ago)
- Last Synced: 2025-07-24T15:42:42.806Z (11 months ago)
- Size: 79.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### What is this
Source code for [/u/mlapibot](https://www.reddit.com/user/mlapibot) which uses OCR to determine text in images uploaded to /r/DiscordApp. Use a number of heurisitcs (lol jks, .Contains() 100%) to see if the text might be a scam
### How do I run this
Good question
### Data
At `data/scams.json`, we expect a file that contains the following JSON:
{
"scams": [
{
"name": "Some Name",
"reason": "Why this is a scam, eg, 'poor grammar'",
"text": ["some triggers", "that match into the words", "of the detected text",
"the trigger that matches the best will be used as the percentage match value"]
},
...
]
}
At `data/praw.ini`, we expect a file that contains the following:
[bot1]
client_id=...
client_secret=...
password=...
username=...
At `data/template.md`, we expect a markdown comment where {0} is replaced by a list of scams detected. An example is already present