Git Product home page Git Product logo

mirror2gdrive's Introduction

Mirror2GDrive

Hello there, ๐Ÿ‘ฝ I am a Telegram Bot that can download files using Aria2/Qbittorrent and upload them to your GDrive or Telegram. I can run only on Linux x86_64/amd64 system.

Available Commands

start         - ๐Ÿ‘ฝ Start the bot
mirror        - ๐Ÿ—ณ Mirror file using Aria2
qbmirror      - ๐Ÿงฒ Mirror file using Qbittorrent
unzipmirror   - ๐Ÿ—ƒ๏ธ Mirror & unzip using Aria2
qbunzipmirror - ๐Ÿซง Mirror & unzip using Qbittorrent
leech         - ๐Ÿงฉ Mirror & leech using Aria2
qbleech       - ๐ŸŒ€ Mirror and leech using Qbittorrent
unzipleech    - ๐Ÿงฌ Unzip and leech
task          - ๐Ÿ“ฅ Show the task list
ngrok         - ๐ŸŒ Show Ngrok URL
stats         - โš™๏ธ Show system info
log           - ๐Ÿ“„ Get runtime log file

Prepare config.env file

Create an env file in Github Gist or any other place but make sure to provide the direct download link of that file.

PICKLE_FILE_URL = ""
BOT_TOKEN = ""
TG_API_ID = ""
TG_API_HASH = ""
# To upload files in telegram
USER_SESSION_STRING = ""
# Authorized users to use the bot
USER_LIST = '[12345, 67890]'
# Drive/Folder ID to upload files
GDRIVE_FOLDER_ID = 'abcXYZ'
# For serving download directory with ngrok's built-in file server
NGROK_AUTH_TOKEN = ""
# For clearing tasks whose upload is completed
AUTO_DEL_TASK = False
# For downloading files from uptobox
UPTOBOX_TOKEN = ""
# For sending files to log channel
LOG_CHANNEL = ""
# For sending files to you
BOT_PM = True
# Create worker using https://gitlab.com/GoogleDriveIndex/Google-Drive-Index
# Example: https://index.workers.dev/0: (Add drive index num with : at the end)
INDEX_LINK = ""

Build and run the docker image

docker build -t mybot:latest .

docker run -d --name=Mirror2GdriveBot \
  -e CONFIG_FILE_URL="github gist link of config.env" \
  --restart=unless-stopped \
  -v $PWD:/usr/src/app `#optional: for data persistence` \
  -p 8010:8090 -p 8020:6800 `#optional: for accessing qbit/aria` \
  mybot:latest

Extras

  • To generate token.pickle file. First place the credentials.json file in current directory and run.
docker run --rm -it -v $PWD:/mnt --net host --entrypoint python mybot:latest generate_token_pickle.py
  • To get the user session string of your bot.
docker run --rm -it --entrypoint python mybot:latest session_generator.py

Credits

mirror2gdrive's People

Contributors

rinrinx avatar sachin0raon avatar sachinoraon 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.