https://github.com/rly0nheart/lmgtfy
A Reddit Lmgtfy(Let me google that for you) bot that replies to questions in specified subreddits. It will reply to questions that contain Who is, What is, Where is, How is, What are, etc.
https://github.com/rly0nheart/lmgtfy
lmgtfy reddit reddit-api reddit-bot reddit-crawler redditbot
Last synced: 7 months ago
JSON representation
A Reddit Lmgtfy(Let me google that for you) bot that replies to questions in specified subreddits. It will reply to questions that contain Who is, What is, Where is, How is, What are, etc.
- Host: GitHub
- URL: https://github.com/rly0nheart/lmgtfy
- Owner: rly0nheart
- License: apache-2.0
- Archived: true
- Created: 2021-10-01T09:49:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-01T10:43:10.000Z (over 4 years ago)
- Last Synced: 2025-01-25T06:41:16.466Z (over 1 year ago)
- Topics: lmgtfy, reddit, reddit-api, reddit-bot, reddit-crawler, redditbot
- Language: Python
- Homepage: https://git.io/Jg2iz
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A Reddit Lmgtfy(Let me google that for you) bot
that replies to questions in specified subreddits.
It will reply to questions that contain *Who is*, *What is*, *Where is*, *How is*, *What are*, etc.
# Prerequisites
* Reddit client id
* Reddit client secret
# Installation
**Clone the repo**
$ git clone https://github.com/rlyonheart/lmgtfy.git
$ cd lmgtfy
$ pip install -r requirements.txt
# Getting Started
* Assuming your're already logged in to Reddit
The first step is to create an application to query the API.
* Go to [Reddit Apps](https://reddit.com/prefs/apps)
* Select “script” as the type of app.
* Name your app and give it a description.
* Set-up the redirect uri (you can just put https://example.com for this purpose)
* Click “Create app”, you will be given your *client_id* and *client_secret* key. you will use these in the *config/credentials.py file*
**After getting the keys**
Move to the *config/credentials.py* file, you will have to put your Reddit username and password then add the keys you got from Reddit.
* Then move to the lmgtfy.py file and add the name of the subreddit you what to monitor.
* Once that's done, run python lmgtfy.py.
You can also customize the bot's reply to suit your needs