This bot fetches the top 100 posts from r/cats and randomly selects one of them to post in the specified channel. The posts are fetched using the Python library praw which allows the bot to easily fetch the posts.
If you encounter any problems with the bot please make an issue here and i will try my best to solve them.
❗To install the dependencies type pip install -r requirements.txt
into a terminal window. ❗
- Download the dependencies using the
requirements.txt
file.
2. Create a ``.env`` file in the project folder and copy the following lines into it as shown in the screenshot below. ``` TOKEN= CLIENTID= CLIENTSECRET= ```
- Create a Reddit application and copy the Client ID and Client Secret into the
.env
file. If you do not know how to do this, please follow this link that will show you how to create a Reddit application and get the required fields.
4. Start the bot by typing ```python main.py``` into a terminal instance.
Command | Description |
---|---|
.cat | Sends a random cat image from r/cats |