Coder Social home page Coder Social logo

vcpb-zeet-deploy's Introduction

Modified version of RattyDAVE's original repo to deploy VCPB on Zeet

Env

  • You will need to set the following environment variables for a successful build.

API_ID int: An api id from my.telegram.org.

API_HASH str: An api hash from my.telegram.org.

TOKEN str: A bot token from @BotFather.

SUDO_USERS list(int): Separated by space, a list of user ids.

GROUP int: The id of the group where your bot plays.

MONGO_DB_URI str: (optional, default: none) your MongoDB URI for the custom playlist feature (you can get one for free in their official website, sign up, create a cluster and a database named "vcpb").

USERS_MUST_JOIN bool: (requires GROUP, optional, default: false) If true, only users which are in the group can use the bot.

LANG str: (optional, default: en) your bot language, choose an available language code in here.

DUR_LIMIT int: (optional, default: 10) max video duration in minutes for downloads.

Deploying

Sign in with your Github account and fork this repo.

  • Fork this repository.
  • Go to Zeet's website.
  • Sign in using your GitHub account.
  • Create a new project, using the free plan.
  • Add access to the forked repository and deploy.
  • Fill the environment variables as described below.
  • Zeet will start building from the Dockerfile, it might take some time.
  • Once deployed, you'll see a small terminal icon, click it to open Zeet's in-browser terminal.
  • Change the default password for the user vcpb sudo passwd vcpb . Enter a new password when it asks.
  • Type /xrdp-start.sh, hit enter, wait 10 seconds and disconnect from the terminal.
  • After starting XRDP, copy your project's pulbic IP address and open a remote desktop client.
  • Use the public IP, plus the following credentials to login: User: vcpb
    Passphrase: music or the password you set previously
  • After logging in, you can ignore some expected error messages.
  • Open Mate terminal, type ~/Telegram/Telegram to open tdesktop.
  • When tdesktop is opened, login with an alt account of yours.
  • Join a voice chat, unmute the mic and close the RDP connection.

Credits

vcpb-zeet-deploy's People

Contributors

rattydave avatar subinps avatar roj1512 avatar recklessop 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.