Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philmod/url-shortener-bot
Messenger bot to shorten urls
https://github.com/philmod/url-shortener-bot
Last synced: about 1 month ago
JSON representation
Messenger bot to shorten urls
- Host: GitHub
- URL: https://github.com/philmod/url-shortener-bot
- Owner: Philmod
- Created: 2016-04-14T15:11:58.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T19:27:19.000Z (almost 9 years ago)
- Last Synced: 2024-10-28T00:19:09.076Z (3 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# url-shortener-bot
Messenger bot to shorten urls![Bot](https://dl.dropboxusercontent.com/u/45971143/url-shortener-bot.gif)
## How does that work?
It uses the [url-shortener](https://github.com/Philmod/url-shortener) service to shorten a requested url.
If a shortened url is passed, the bot will give you the opportunity to get statistics about it.## Install and Run
- Install Node.js and NPM, by downloading and installing from https://nodejs.org/en/
- Install Node.js modules for this project
```
npm install
```
- [Set up a Facebook App and Page](https://developers.facebook.com/docs/messenger-platform/quickstart), update your `/config/` file with the `facebook_verif_token` and `facebook_page_token`
- Run a local url-shortener server (and define the config parameter `url_shortener_url`)
- Run this server:
```
npm start
```## Tests
```
npm test
```### Circle CI
Circle CI is configured and will run all the tests whenever a commit is pushed to this repository.![Circle CI](https://circleci.com/gh/Philmod/url-shortener-bot/tree/master.svg?style=svg)