Skip to content

jsmsj/Gclone-Discord-Utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gclone Discord Utilities

This repo is only for selfhosting the bot on PC. For heroku Build 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

Before you get started, you need Python 3.7 or later to run this script. Below are some extra things you need to download / install too:

  • 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.

Setup (Windows):

  1. Download the zip of the repo and extract it to a suitable location.
  2. Download the latest release of gclone and add the gclone file to the location, where you extracted .zip folder in step 1.
  3. Run pip install virtualenv in your terminal.
  4. Activate the virtual enviorment.
  5. Run pip install -r requirements.txt
  6. Create a discord bot account. Follow this tutorial, or you can refer to youtube.
  7. Edit the .env file.
  8. Update the rclone.conf file as per your need.
  9. Open up your Terminal or Command Line and then cd into the directory of the Cloned GitHub Repo.
  10. Run python main.py or python3 main.py. The output of the Terminal or Command Line should have no errors and show that everything is all ready!

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

How to set-up Gclone-Discord-Utilities bot

Coming soon ......