Code Monkey home page Code Monkey logo

voicy's Introduction

Voicybot

@voicybot main repository

This repository contains the code for one of the most popular bots I've ever built for Telegram — @voicybot. Please, feel free to fork, add features and create pull requests so that everybody (around 500 000 chats) can experience the features you've built.

List of repositories

Installation and local launch

  1. Clone this repo: git clone https://github.com/backmeupplz/voicy
  2. Launch the mongo database locally
  3. Create .env file with BOTAN_TOKEN, VOICY_MONGO_DB_URL, VOICY_TELEGRAM_API_KEY, VOICY_RANDOM_SALT, G_CLOUD_PROJECT_ID, TELEGRAM_PAYMENTS_TOKEN, ADMIN_ID, and YANDEX_KEY
  4. Add Google credentials certificate to certificates/voicy.json; you need to create Google service account with access to your Google Cloud project and then get the credentials
  5. Run npm i in the root folder
  6. Run npm run start

Environment variables in .env file

  • BOTAN_TOKEN — token for botan.io analytics service
  • VOICY_MONGO_DB_URL — url for the mongo database used for Voicy, may include credentials
  • VOICY_TELEGRAM_API_KEY — telegram bot token for Voicy
  • VOICY_RANDOM_SALT — random salt to generate various encrypted things
  • G_CLOUD_PROJECT_ID — Google Cloud services project id for temporary file storage at Google Buckets and Google Speech voicy recognition
  • TELEGRAM_PAYMENTS_TOKEN — telegram bot payments token; no longer used as payments have retired
  • ADMIN_ID — chat id of the person who shall receive valuable logs
  • YANDEX_KEY — key for Yandex SpeechKit voice recognition service
  • WIT_LANGUAGES — A map of language names to Wit.ai tokens

Continuous integration

Any commit pushed to master gets deployed to @voicybot via CI Ninja.

License

MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!

As seen on

Habrahabr Spark Reddit Bot Store Product Hunt

voicy's People

Contributors

backmeupplz avatar

Watchers

James Cloos 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.