GithubHelp home page GithubHelp logo

botangelai / bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azamaulanaaa/botkaca

0.0 0.0 0.0 162 KB

Bot that leech (re-upload) internet contents including torrent to telegram

License: GNU General Public License v3.0

Dockerfile 1.56% Python 98.44%

bot's Introduction

BOTKACA

Botkaca allows you to leech (re-upload) contents from internet including torrent to telegram. This bot using Telegram MTProto powered by pyrogram.

Feature

  • Set as Private (using password)
  • Able to use at group
  • Able to leech larger than 2GB (telegram max upload at once)
  • Split as video (.mp4, .mkv, .avi, .webm, .wmv, .mov)
  • Upload files as media or as document
  • Upload files as a single zip file
  • Custom thumbnail
  • Default torrent tracker (untested)
  • Customizeable language (default as englsih)
  • Configuration using environment variable

Configuration

Change config by set the corresponding environment variable name.

  • WORKDIR : working directory path
  • LOG_FILE : log file name
  • MAX_LOG_SIZE : maximum log size
  • EDIT_SLEEP : delay between edit message
  • UPLOAD_MAX_SIZE : maximum file size upload at once (watchout telegram max upload size)
  • UPLOAD_AS_DOC : Upload any files as document (1 or 0)
  • UPLOAD_AS_ZIP : Upload any files as a budled zip file
  • ARIA2_DIR : download directory before uploading
  • TORRENT_TRACKER : addition tracker for all torrent, separated by (,)
  • BAR_SIZE : bar size on upload and download
  • THUMBNAIL_NAME : default thumbnail file naem
  • LOCAL : languange bot using

Deploy button

Run on Google Cloud Deploy to Heroku

Currently google cloud does not supported due to app.json clash with heroku. Check out Google Cloud Run issue #112

How to run

#!/bin/sh

# get botkaca source
git clone https://github.com/azamaulanaaa/botkaca.git

# build then execute using docker image
docker build -t azamaulanaaa/botkaca botkaca
docker run -it azamaulanaaa/botkaca

Bot Details

Specification

  • Python 3
  • Dependence
    • pyrogram asyc
    • aria2p
  • Program Dependece
    • aria2c
    • ffmpeg + ffprobe
  • Dockerize

Folder Structure

  • / : development detail and deploy config
  • /bot : module root dir
    • __init__.py : bot config
    • __main__.py : register handler then run bot
    • command.py & config.py & status.py : control and maipulate bot states
  • /bot/handler : message handler
  • /bot/locals : localization and default is en
  • /bot/plugins : third party implementation

bot's People

Contributors

azamaulanaaa avatar botangelai 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.