Skip to content

JugieNoob/Discord-Cat-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Discord bot that gets cat posts from r/cats!

Resources

License

Stars

Watchers

Forks

Languages