A Discord.py bot for Running GClone, an RClone mod that allows multiple Google Service Account configuration. Inspired by Telegram MirrorBots and CloneBot.
Thanks to KushTheAppluser, TaskyLizard, Cerda, and Razorback for helping me develop the bot!
Original bot and code made by KushTheAppluser / BlackBeard. GClone created by Donwa. GClone Linux made by Cerda
Below are the features the bot currently has of now. New commands and features will be coming soon!
- Clone - Clones files / folders to other places
- Move - Moves files / folders to other places
- Sync - Sync source links to destination links
- Emptdir - Empty folder contents to the trash can
- MD5 - Produce an MD5 File hash for all contents in a folder
- Rmdi - Remove empty directories
- Dedupe - Deduplicate files / folders
- MKDir - Create directories / folders
- Purge - Delete a directory and all its contents
- Ping - Get the bot's current websocket and API latency
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 - GClone requires service accounts. To generate and manage them, use AutoRClone. You can then configure GClone using the service accounts.
- Pip requirements - In the folder of this GitHub Repository, run
pip install -r requirements.txt
and wait for the Python requirements are finished installing - Docker (OPTIONAL) & Docker-Compose (OPTIONAL) - If you want to run the bot in a containerized Docker environment, you have to install Docker and Docker-Compose first. You can use Heroku too! THIS IS OPTIONAL AND YOU DON'T HAVE TO USE DOCKER OR HEROKU!
- Git (OPTIONAL) - You can use this tool to contribute to development of CloneCord or by cloning the repo for your own use.
- Download the repository as a zip file and extract it (Click on the green
Code
button on the front page of this GitHub repo and then clickDownload Zip
). You can also use Git togit clone https://github.com/rekulous/clonecord-bot
and get the repo. - Go to the Discord App Dev Portal and then create a new application.
- Turn the application into a bot and copy its token. NEVER SHARE THIS WITH ANYBODY, IT IS THE WAY THE PYTHON SCRIPT GAINS ACCESS TO THE BOT!!!
- In the
config.json
file, you are going to want to put the token in where thetoken
line is. After that, set the bot prefix you want and then save the file. - Open up your Terminal or Command Line and then
cd
into the directory of the Cloned GitHub Repo. - Run
python CloneCord.py
orpython3 CloneCord.py
. The output of the Terminal or Command Line should have no errors and show that everything is all ready!
Enjoy using CloneCord!
- Follow the first five steps of How to run the bot
- Feel free to edit
Dockerfile
ordocker-compose.yml
to your preferences and desire if you want - Run
docker-compose up -d
and wait for docker-compose to build the container and Docker image - Run
docker conatainer ls
anddocker image ls
to check if the CloneCord container and image is running
If the image and container exists, and the container is running, CloneCord is working! Check to see if your bot is working and enjoy!
Before you deploy it. Fork the repository, and make it private, then change the config.json file to your credentials.
After that go to link https://heroku.com/deploy?template=<your forked repository>
Then authorize Heroku to access your GitHub account and specify your bot to your own forked CloneCord repo. Set a bot token and prefix for it, then run the app and boom. You just got your Discord bot running!
Deploy to Heroku:
You are not able to run this bot on Replit because it cannot install or run GClone in the Shell or Python. Instead, use Heroku or run it on your system.