Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vinitshahdeo/quotter

:robot: A Twitter bot which tweets random quotes with image and #hashtags :bird: :bell:
https://github.com/vinitshahdeo/quotter

hacktoberfest hashtags motivational-quotes quotter tweets twitter twitter-api twitter-bot

Last synced: 9 days ago
JSON representation

:robot: A Twitter bot which tweets random quotes with image and #hashtags :bird: :bell:

Awesome Lists containing this project

README

        

![Quotter on Twitter By Vinit Shahdeo](https://github.com/vinitshahdeo/Quotter/blob/master/img/quotter-twitter-bot.png?raw=true)

# Quotter - [#DailyMotivation](https://twitter.com/SayHiToQuotter) Twitter Bot

[![GitHub commit activity](https://img.shields.io/github/commit-activity/y/vinitshahdeo/Quotter.svg?logo=github&style=social)](https://github.com/vinitshahdeo/) [![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/vinitshahdeo/Quotter.svg?logo=git&style=social&logoColor=teal)](https://github.com/vinitshahdeo/) [![GitHub last commit](https://img.shields.io/github/last-commit/vinitshahdeo/Quotter.svg?logo=github&style=social)](https://github.com/vinitshahdeo/)

## A **[Twitter](https://twitter.com/SayHiToQuotter) Bot** which tweets random [inspirational quotes](https://vinitshahdeo.github.io/inspirational-quotes/) with a picture.

### Follow Quotter([@SayHiToQuotter](https://twitter.com/SayHiToQuotter)) on Twitter and `Stay Motivated` Always!

[![Twitter Bot](https://img.shields.io/badge/Twitter-Bot-teal.svg?style=for-the-badge&logo=twitter&logoColor=white)](https://github.com/vinitshahdeo/Quotter) [![Inspirational Quotes](https://img.shields.io/badge/Inspirational-Quotes-teal.svg?style=for-the-badge)](https://vinitshahdeo.github.io/inspirational-quotes/) [![Daily Motivation](https://img.shields.io/badge/Daily-Motivation-teal.svg?style=for-the-badge)](https://twitter.com/SayHiToQuotter)

> #### Check **documentation** for the `source code` **[here](https://vinitshahdeo.github.io/Quotter/out/global.html)**!

> #### A Big shout out to [Canva](https://www.canva.com/)! I've created the Quotter [logo](https://github.com/vinitshahdeo/Quotter/blob/master/img/quotter-logo.png) and Twitter [header](https://github.com/vinitshahdeo/Quotter/blob/master/img/quotter-twitter-bot.png) using this.

## Special Mention

#### A heartfelt thanks to [Ananya](https://www.facebook.com/ananya.chaudhary.54) for suggesting the name [Quotter](https://twitter.com/SayHiToQuotter).

#### **[Quotes](https://vinitshahdeo.github.io/inspirational-quotes/) + [Twitter](https://twitter.com/Vinit_Shahdeo) = [Quotter](https://twitter.com/SayHiToQuotter)**

## Getting Started

- First clone this repository: ```git clone https://github.com/vinitshahdeo/Quotter.git```

- Replace 'XXXXXXXXX' in `src/config.js` with your [Twitter API](https://developer.twitter.com/en/apps/) keys.

```javascript
module.exports = {
consumer_key: 'XXXXXXXXXXXXXXXX',
consumer_secret: 'XXXXXXXXXXXXXXXX',
access_token_key: 'XXXXXXXXXXXXXXXX',
access_token_secret: 'XXXXXXXXXXXXXXXX'
}
```

- To run this [Twitter bot](https://twitter.com/SayHiToQuotter), first install dependencies : ```npm install```

- Then run the below command : ```npm run build``` or ```npm run start```

**Note** - Tests are written using **[Mocha](https://mochajs.org/)** and can be run using `npm test`

## APIs Used

- [Twitter API](https://dev.twitter.com/apps)
- [Unsplash - Photos for Everyone](https://unsplash.com/)

## Dependencies Used

- [inspirational-quotes](https://vinitshahdeo.github.io/inspirational-quotes/)
- [node-base64-image](https://www.npmjs.com/package/node-base64-image)
- [twitter](https://www.npmjs.com/package/twitter)

## Getting [Twitter API](https://dev.twitter.com/apps) keys

> Click [here](https://dev.twitter.com/apps) to get **Twitter API** key.

### Step by Step Instructions

- Go to [this](https://dev.twitter.com/apps/new) and log in, if necessary.

- Enter your Application Name, Description and your website address. You can leave the callback URL empty.

- Accept the TOS, and solve the CAPTCHA.

- Submit the form by clicking the Create your Twitter Application.

- Copy the consumer key (API key) and consumer secret from the screen and replace in `src/config.js`

- Generate acess token and access secret token and replace in `src/config.js`

#### Thanks! Glad to see you here! Don't forget to follow Quotter([@SayHiToQuotter](https://twitter.com/SayHiToQuotter)) on [Twitter](https://twitter.com/SayHiToQuotter).

[![Twitter Follow](https://img.shields.io/twitter/follow/SayHiToQuotter.svg?style=social&logoColor=teal)](https://twitter.com/SayHiToQuotter) [![GitHub](https://img.shields.io/github/license/vinitshahdeo/Quotter.svg?logo=github&style=social)](https://vinitshahdeo.github.io/Quotter/)

| |
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| **[Vinit Shahdeo](https://fayz.in/stories/s/1522/0/?ckt_id=ZGL1ZGVk&title=story_of_vinit_shahdeo)** |
| |

[![Facebook](https://img.shields.io/static/v1.svg?label=Add&[email protected]&color=teal&logo=facebook&style=flat&logoColor=white)](https://www.facebook.com/vinit.shahdeo) [![Instagram](https://img.shields.io/static/v1.svg?label=Follow&message=@vinitshahdeo&color=teal&logo=instagram&style=flat&logoColor=white)](https://www.instagram.com/vinitshahdeo/) [![LinkedIn](https://img.shields.io/static/v1.svg?label=connect&message=@vinitshahdeo&color=teal&logo=linkedin&style=flat&logoColor=white)](https://www.linkedin.com/in/vinitshahdeo/)

[![Built with love](https://img.shields.io/badge/Built With-Love-teal.svg?style=for-the-badge)](https://github.com/vinitshahdeo/Quotter) [![Quotter makes people smile](https://img.shields.io/badge/Makes People-Smile-teal.svg?style=for-the-badge)](https://vinitshahdeo.github.io/Quotter/)

---

[![Vinit Shahdeo](https://img.shields.io/badge/[email protected]?logo=github)](https://github.com/vinitshahdeo/) [![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/vinitshahdeo) [![Twitter Bot](https://img.shields.io/badge/twitter-bot-teal.svg?logo=twitter&logoColor=white)](https://github.com/vinitshahdeo/Quotter) [![Inspirational Quotes](https://img.shields.io/badge/inspirational-quotes-teal.svg?logo=npm&logoColor=white)](https://www.npmjs.com/package/inspirational-quotes)