GithubHelp home page GithubHelp logo

pachax001 / stream-extract-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from honeybunny002/extract

0.0 0.0 0.0 152 KB

License: MIT License

Python 98.03% Procfile 0.06% Shell 0.09% Dockerfile 1.82%

stream-extract-bot's Introduction

Streams Extractor Bot

This Bot can extract audios and subtitles from video files.

Send any valid video file and the bot shows you available streams in it that can be extracted!!

Installation

Deploy in your vps

We are gonna use docker compose to run the bot.

Install docker on your VPS. See official Docker Docs.
After installing docker follow the below steps.

  1. Clone the repo and change directory to streamextract
git clone https://github.com/pachax001/Stream-Extract-Bot.git streamextract/ && cd streamextract

2.Rename sample_config.env to config.env and fill config.env

cp sample_config.env config.env

Edit config.env

nano config.env
  1. After filling and saving config.env type this command in terminal and press enter.
sudo docker compose up

Extra

Added /log command to retireve log file of the bot.

Added /restart command to restart and update bot from repo.

  1. To stop docker container
sudo docker compose down
  1. To delete stopped containers.
sudo docker system prune -a

Configs

  • BOT_TOKEN - Get bot token from @BotFather

  • APP_ID - From my.telegram.org (or @UseTGXBot)

  • API_HASH - From my.telegram.org (or @UseTGXBot)

  • OWNER_ID - Telegram ID of the owner

  • AUTH_USERS - Get from @MissRose_bot by /id command. Put id seperated by commas.

  • LOG_CHANNEL - Create a new channel and add the id of the channel. This channel will send the extracted subtitles or videos.

  • LOG_MEDIA_CHANNEL - Create a new channel and add the id of the channel. This channel for the source file. If this channel is not set LOG_CHANNEL will be used.

  • BOT_USERNAME - Username of the bot. Eg: @Extractorbot

  • UPSTREAM_REPO - Repo to update bot on restart.Default is this repo.

  • UPSTREAM_BRANCH - Repo branch for update. Default is master.

stream-extract-bot's People

Contributors

aphabeta avatar devavr avatar heyajustme avatar honeybunny002 avatar jack-of-tg avatar pachax001 avatar prgofficial avatar rumalgucsc avatar sahadz 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.