Giter Club home page Giter Club logo

deadbeat-roommate's Introduction

Deadbeat-Roommate

A fun way to annoy your deadbeat roommate who hasn't paid the rent. Programatically SMS or voice message your roommate at all hours of the day until you get paid.

Usage:

	node ./app.js --config='./config-example.js' --message='Pay the rent bro!'  --target='18001234567' --type='sms'

I provided some examples of how to do this but essentially you will set your Plivo account up, create a config file, and run the app like in the example above. I even added a crob job example to show you how to be extra annoying. Make sure to use the country code in from of the phone number like in the example.

SMS integration

I'm using plivo because it is cheaper than twilio. SMS is pretty simple, you supply the 'target' phone number in the command line argument as well as the message and it will send immediately. Type 'sms' is optional as it is the default.

Voice integration

So with the Plivo voice api you can create the call from the application, but the Plivo API will then hit some URL when the call is picked up, so you must supply this URL when you create the call. Plivo expects you to have some XML at this endpoint that you have specified. The XML is pretty simple, and the parameter where you set the endpoint is "answer_url" in the config file. You can just put your XML file up on S3 or even link it to this repository, it doesn't really matter.

Example voice command:

	node ./app.js --config='./config-example.js'  --target='18001234567' --type='voice'

The structure of the file at your answer_url:

<Response>
    <Speak language="en-GB" loop="3" voice="WOMAN">
       Pay your rent, wanker!
    </Speak>
</Response>

deadbeat-roommate's People

Contributors

a-r-d avatar

Watchers

James Cloos avatar Dawsonn-Andoh  Steve avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.