https://github.com/philmod/url-shortener-bot
Messenger bot to shorten urls
https://github.com/philmod/url-shortener-bot
Last synced: 11 days 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T19:27:19.000Z (about 9 years ago)
- Last Synced: 2025-04-02T15:33:17.251Z (3 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# url-shortener-bot
Messenger bot to shorten urls
## 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.