Fork of voicybot with various changes
I mainly refactored the code a bit, upgraded the dependencies, dealt with deprecated stuff and overall made the bot more general use without any promo or ads.
- Clone this repo:
git clone https://github.com/saschanockel/voicy
- Launch the mongo database locally or use docker for it
- Create
.env
file with the environment variables listed below - Install ffmpeg on your machine
- Run
yarn install
in the root folder - Run
yarn start
To use voicybot with docker you can either build the image yourself or use my image from Docker Hub. Just make sure to mount a folder to /config
in the container and to either pass your environment variables via the commandline or by using the .env
file.
MONGO_URL
— Url for the mongo database usedTOKEN
— Your telegram bot tokenADMIN_ID
— Chat id of the person who shall receive valuable logsWIT_LANGUAGES
— A map of language names to Wit.ai tokensUPDATES_LOG_DIR
Path where the updates.log should be stored in the style of your OS e.g. on WindowsC:\\logs
, if not set the file will be located in the app directoryUSE_WEBHOOK
— Use a Webhook or not (true/false), leave empty if not using a webhookWEBHOOK_DOMAIN
— Use this domain when using a webhook, else can be left empty
Extra info is available in .env.sample
file. To use the .env
file with the docker container just place it in the folder you mounted to /config in the container.
MIT — use for any purpose. Would be great if you could leave a note about the original developers and maybe also me :). Thanks!