Giter Site home page Giter Site logo

folderclone-hrkbot's Introduction

FolderClone-Telegram-Bot ๐Ÿ”ฅ

FolderClone: A project that allows you copy large folders to Shared Drives.

Deploy on Heroku

  1. Fork this repository.
  2. Then clone your repository.
git clone https://github.com/YOUR_USERNAME/YOUR_REPOSITORY_NAME.git
  1. Follow this repository to generate service accounts.
  2. Put all your service accounts (JSON Files) in accounts folder.
  3. Edit the values in config.py.
  4. Now open app.json file and change line 4 line 6 and line 7 as per the instructions.
  5. Open README.md file and change line 26 as per the instructions.
YOUR_UERNAME - Replace this with your github username.
YOUR_REPOSITORY_NAME - Replace this with your github repository name.
  1. Push the files to your github repository.
  2. Use Deploy To Heroku Button

Deploy

Usage in telegram bot

/folderclone <source_id> <dest_id> <thread> <view> <skip>

source_id - Drive ID of the folder you want to copy from. (Required)

dest_id - Drive ID of the folder you want to copy into. (Required)

thread - Amount of threads to use. The higher the more resource it requires. Default - 25

view - 0 - Tree View. 1 - Basic View. Default - Tree View.

skip - ID of the folder to skip to. Default - None.

Details about skipping

This is for those that host bot on heroku. Since heroku recycle their dyno approximately every 24 hr, things might stop halfway during cloning.

Folder IDs are printed along side with the normal progress so you can use it for the skip parameter.

Delete all the files within the folder of which the process stopped at first before cloning again. (So that you won't get duplicates)

You need to specify the rest parameter if you want to use the skip parameter.

Example : /folderclone FSAF3213FD3S2341 FSAF3213FD3S2342 25 0 FSAF3DE45D3S2356

Note

folderclone.py - Modified version of multifolderclone.py from Multifolderclone.

Thanks to โค๏ธ

folderclone-hrkbot's People

Contributors

zero-the-kamisama 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.