Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 2.08 KB

README.md

File metadata and controls

54 lines (40 loc) · 2.08 KB

Discord Cat Bot 😺

Table of Contents 📝

What is this ❓

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.

Showcase 📺

1. The Cat Bot displaying the post.

Dependencies 📃

❗To install the dependencies type pip install -r requirements.txt into a terminal window. ❗

How to Setup ℹ️

  1. 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= ```



  1. 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.

Commands ⌨️

Command Description
.cat Sends a random cat image from r/cats