AstroCB / VoiceBot

A bot for re-hosting Facebook Messenger audio clips.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VoiceBot

VoiceBot is a bot for automatically downloading audio clips sent through Facebook Messenger and then hosting them on an external server.

After the bot downloads a clip, it will send a link to a page where the file can be played and downloaded.

Usage

Clone this repo and create a config.js file at the root with the following exports:

exports.THREAD_ID = /* ID of thread where bot will run */;
exports.PORT = /* port for web server to run on */;
exports.SERVER_URL = /* publicly-accessible URL of the server */;
exports.URL_BASE = /* URLs will be in the form https://SERVER_URL:PORT/URL_BASE/...*/;

Then run npm install and npm start, which will spin up a pm2 daemon to keep the bot running.

About

A bot for re-hosting Facebook Messenger audio clips.


Languages

Language:JavaScript 85.4%Language:Pug 9.9%Language:CSS 4.7%