<repo_name>pchinjr/valentines-day-bot<file_sep>/README.md
# Valentine's Day Bot

> :heart: :cat:
>
> Tweets a special reply to mentions using the correct #hashtag.
>
> Uses Serverless framework and AWS Lambda.

## Try it out

Mention `@thesecatstweet` in a tweet and don't forget the hashtag `#happyvalentinebot`.

## About

This is a demonstration project for Serverless bots inspired by other useful bots
and other cute bots.

*   The `handleMentions` function does scheduled polling of mentions to perform replies
    (if you want a :100: Serverless application)
*   The `reply` function performs just the favoriting and reply to a mention
    (can be called by the Twitter Streams API)

## Install

With [node](https://nodejs.org/) installed, install the Serverless Architecture:

```
$ npm i -g serverless
```

Clone this repository

```
$ git clone <EMAIL>:lynnaloo/valentines-day-bot.git
```

Install dependencies

```
$ npm i
```

## Setup and Testing

Setup your Account Provider and Credentials

*   [AWS Lambda](https://serverless.com/framework/docs/providers/aws/setup)
*   [AWS account credentials](https://serverless.com/framework/docs/providers/aws/guide/credentials)

Run Unit Tests

```
npm test
```

Test Lambda Function locally

```
serverless invoke local -l -f handleMentions
```

## Deployment

Deploy Lambda Functions

```
$ sls deploy -v
```

## See Also

*   [Serverless Framework](http://www.serverless.com)
*   [Adopt-a-Pet Bot](https://github.com/lynnaloo/adoptable-pet-bot)
*   [Rachel's Cute Bot](https://github.com/rachelnicole/magicalncute)

## License

MIT
<file_sep>/lib/responses.js
'use strict';

module.exports = [
  'Happy Valentine\'s Day! You\'ll never be null in my interpreter.',
  'Happy Valentine\'s Day! My response to you is never undefined.',
  'Happy Valentine\'s Day! Our friendship has no bugs!',
  'Happy Valentine\'s Day! You\'re my favorite human.'
];
