Skip to content

A Pycord bot for running GClone, an RClone mod that allows multiple Google Service Account configuration. Inspired by Rekulous' CloneCord. Now deployable to Heroku

Notifications You must be signed in to change notification settings

jsmsj/Gclone-Discord-Utilities-Heroku

Repository files navigation

Gclone Discord Utilities

This is for heroku build only !!! For self hosting on PC, see this


Features

  1. Clone - Clone a public/private google drive file/folder to your teamdrive.
  2. Mkdir - Make Directories directly from discord.
  3. Size - Calculate size of google drive files/folders from link.
  4. Move - Move files/folders from one location to other.
  5. sync - Sync source links to destination links.
  6. Delete - Delete folders/files.
  7. Name - Find name of google drive folders/files from link.

Prerequisites

  • Gclone - Run the shell / batch script if you are on Linux to install, or add the gclone.exe file to your system PATH variables if you are on Windows. Putting the script in the same directory as GClone in Windows will work as well. If you are on MacOS, download the Darwin build of GClone.
  • AutoRClone - (Service accounts folder) - GClone requires service accounts. To generate and manage them, use AutoRClone. You can then configure GClone using the service accounts.
  • Git - Install this program, and dont forget to add to PATH. Docs
  • Heroku CLI - Install the Heroku CLI and add to PATH. Docs

Deploy to Heroku

Deploying to heroku takes patience. But its a one time setup. Have patience. If you find any difficulties, follow the video tutorial.


Setup (Heroku):

  1. Download the zip of the repo and extract it to a suitable location.
  1. Add service accounts (100 json files) to the accounts folder.
  2. Update the .env file.
    1. Add discord bot token
    2. Add bot prefix
    3. Add your discord id to USERIDS
    4. Add your discord id to ADMINS
    5. Add the default destination id
  3. Go to Heroku dashboard.
  4. Create a new app and give it a suitable name.
  5. Go to its settings, then under the buildpacks section, click Add Buildpack and add the following buildpacks:
    1. heroku/python
    2. https://github.com/The-Antrax/heroku-buildpack-rclone-mod.git
  6. Run command prompt in the folder in step 1.
  7. Follow these commands:
    1. heroku login
    2. git init
    3. heroku git:remote -a "name" Here name is the name of your heroku project.
    4. git add . -f
    5. git commit -am "first commit"
    6. git push heroku master
  8. Go to Resources tab in heroku dashboard. Refresh it. Click on the ✏️ icon, and toggle on the worker.

Video:

Incase you find any difficulties, follow this video tutorial

Enjoy using Gclone Discord Utilities Bot


Detailed Tutorial on Gclone and Service accounts setup

How to create Service Accounts and add them to your teamdrive and setup gclone.

Follow this tutorial


About

A Pycord bot for running GClone, an RClone mod that allows multiple Google Service Account configuration. Inspired by Rekulous' CloneCord. Now deployable to Heroku

Topics

Resources

Stars

Watchers

Forks