Skip to content

🌠 Reddit bot that gives Mustafa Kemal Ataturk quotes when Ataturk mentioned.

License

Notifications You must be signed in to change notification settings

alfredsaveron/AtaturkQuoteBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AtaturkQuoteBot

Ataturk Photo
AtaturkQuoteBot is a Reddit bot that adds a touch of inspiration to discussions by sharing thought-provoking quotes from Mustafa Kemal Ataturk whenever his name is mentioned in comments on selected subreddits. The bot is powered by Javascript, Typescript and Python, showcasing its versatility and the use of two popular programming languages.

Table of Contents

Features

  • Provides Mustafa Kemal Ataturk quotes when mentioned on selected subreddit's post comments.
  • Written in TypeScript, JavaScript and Python.
  • Easy to use.

Python (main.py)

Installation

Before running the code, install the necessary dependencies:

pip install praw

Usage

In main.py, replace the placeholders with your Reddit API credentials and target subreddit:

YOUR_CLIENT_ID = "your_client_id"
YOUR_CLIENT_SECRET = "your_client_secret"
YOUR_USER_AGENT = "your_user_agent"
YOUR_REDDIT_USERNAME = "your_bot_username"
YOUR_REDDIT_PASSWORD = "your_bot_password"

JavaScript (main.js)

Installation

Before running the code, install the necessary dependencies:

npm install snoowrap snoostorm

Usage

In main.js, replace the placeholders with your Reddit API credentials and target subreddit:

const YOUR_CLIENT_ID = "your_client_id";
const YOUR_CLIENT_SECRET = "your_client_secret";
const YOUR_REDDIT_USERNAME = "your_bot_username";
const YOUR_REDDIT_PASSWORD = "your_bot_password";
const YOUR_SUBREDDIT = "target_subreddit";

TypeScript (main.ts)

Installation

Before running the code, make sure you have installed the snoowrap package:

npm install snoowrap

Usage

In main.ts, replace the placeholders with your Reddit API credentials and target subreddit:

const YOUR_CLIENT_ID = "your_client_id";
const YOUR_CLIENT_SECRET = "your_client_secret";
const YOUR_REDDIT_USERNAME = "your_bot_username";
const YOUR_REDDIT_PASSWORD = "your_bot_password";
const YOUR_SUBREDDIT = "target_subreddit";

Note: Always use the bot responsibly and follow Reddit API usage guidelines and subreddit rules.


Contributing

Feel free to further customize and enhance this template to match your project's structure and branding. You can add sections for installation instructions, usage examples, and any other relevant information. Good luck with your AtaturkQuoteBot project!

I would like to thank Berkay Gediz for his kind contributions.

This version includes the provided template with code blocks enclosed in code tags, making it more readable and clear for anyone viewing your GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.