Skip to content

Commit 8743a2a

Browse files
committed
CloneCord V6 BETA
1 parent 618f3d7 commit 8743a2a

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

CloneCord.py

+21-10
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@
1111
# You should have received a copy of the GNU General Public License
1212
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1313

14-
# CloneCord Bot V5 BETA by KushTheApplusser and REKULOUS with help from Tasky Lizard & Razorback! GClone made by Donwa on GitHub.
14+
# ----------------------------------------------------------------------------------------------------------------------
15+
16+
# CloneCord Bot V6 BETA by REKULOUS with help from Tasky Lizard & Razorback! GClone made by Donwa on GitHub. Original Discord "GClone-Bot" by KushTheApplusser!
17+
1518
# Bot tested by MineRocker, Saaz, REKULOUS, and KushTheApplusser. Inspired by Telegram GClone, GDrive, and Mirror Bots.
1619
# Also inspired by RoshanConnor and Tommmmyums GClone Batch Script for Windows.
1720
# Thank you to all the testers, devs, and all the people over at BIOHAZARD, FREEMEDIAHECKYEAH, The MegaDrive! Thank you to the users of this bot too!
1821

22+
# If you want to help with the development of this bot, you can fork it on GitHub, edit the code you think needs work / add a feature, and create a pull request! Doing this helps me a lot!
23+
24+
# Python module imports. DO NOT TOUCH UNLESS YOU ARE ADDING A NEW FEATURE! These imports make the bot work and function properly!
1925
import json
2026
import logging
2127
import subprocess
@@ -32,6 +38,10 @@
3238
from discord.ext import commands
3339
from discord.utils import get
3440

41+
# Change CMD Text Color to Cyan, and Change CMD / Python Window Title Name (ONLY FOR WINDOWS)
42+
subprocess.run('title CloneCord Discord Bot V6 BETA by REKULOUS. Or')
43+
subprocess.run('color 0B')
44+
3545

3646
# Get bot config.json so the code has access to your bot account.
3747
if not os.path.isfile("config.json"):
@@ -50,7 +60,7 @@
5060
handler.setFormatter(logging.Formatter("%(asctime)s:%(levelname)s:%(name)s: %(message)s"))
5161
logger.addHandler(handler)
5262

53-
# Bot prefix set to the one in your config.json file. Don't modify or touch this
63+
# Bot prefix set to the one in your config.json file. Don't modify or touch this!
5464
bot = commands.Bot(command_prefix=prefix)
5565

5666
# Print this if the bot is ready and start bot status + give GClone details.
@@ -60,12 +70,12 @@ async def on_ready():
6070
print('Connected to bot: {}'.format(bot.user.name))
6171
print('Bot ID: {}'.format(bot.user.id))
6272
print('CloneCord is Ready!')
63-
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=prefix + "help to get help! CloneCord V5 BETA"))
73+
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=prefix + "help to get help! CloneCord V6 BETA"))
6474
print('CloneCord Status Ready!')
6575
print('Python Version: {}'.format(platform.python_version()))
6676
print('Discord.py API version: {}'.format(discord.__version__))
6777
print("==================================================================================================================================================")
68-
print("--------------------")
78+
print("----------------------------------------------------------------------------------------------------------------------")
6979
print("GClone Version:")
7080
print()
7181
subprocess.run(
@@ -77,7 +87,7 @@ async def on_ready():
7787
subprocess.run(
7888
f"gclone listremotes"
7989
)
80-
print("--------------------")
90+
print("----------------------------------------------------------------------------------------------------------------------")
8191
print("==================================================================[ALL READY!!!]==================================================================")
8292

8393

@@ -88,6 +98,7 @@ async def globally_block_dms(ctx):
8898

8999

90100
# Remove default Discord.py help message and replace it with embed one. Send "<your prefix>help <command>" to get info on how to use a command and get GDrive IDs.
101+
# If you want, you can change the help message to what you want it to explain / say!
91102
bot.remove_command("help")
92103
@bot.command()
93104
async def help(ctx, command: Optional[str]):
@@ -139,7 +150,7 @@ async def help(ctx, command: Optional[str]):
139150
description="**CloneCord is a Discord bot made to run GClone, an RClone mod for Multiple Service Account support in Discord.**\n\n*Note: All commands below can be ran more than once at the same time, but there is a cooldown, so you don't overload / break the bot!*"
140151
,color=0x87CEEB)
141152
helpEmbed.set_author(
142-
name="CloneCord V5 BETA",
153+
name="CloneCord V6 BETA",
143154
icon_url="https://1.bp.blogspot.com/-M5PLcSana6M/XgBHF7jUjiI/AAAAAAAAUzs/S24qhuijluwKlzIOnc2gntoI-U83ZsrJACLcBGAsYHQ/s1600/rclone_logo.png")
144155
helpEmbed.set_footer(
145156
text="Bot originally created by Kush The A++er#2976. Revamped version by REKULOUS#5580. Thanks to Pratyush.#6969 and Razorback#4637 for the help!",
@@ -192,7 +203,7 @@ async def help(ctx, command: Optional[str]):
192203
for com in list_of_commands:
193204
if com["command"] == command:
194205
embed1 = discord.Embed(title=command, description=f"?{command} {com['value']}",color=0x87CEEB)
195-
embed1.set_author(name="CloneCord V5 BETA",icon_url="https://1.bp.blogspot.com/-M5PLcSana6M/XgBHF7jUjiI/AAAAAAAAUzs/S24qhuijluwKlzIOnc2gntoI-U83ZsrJACLcBGAsYHQ/s1600/rclone_logo.png")
206+
embed1.set_author(name="CloneCord V6 BETA",icon_url="https://1.bp.blogspot.com/-M5PLcSana6M/XgBHF7jUjiI/AAAAAAAAUzs/S24qhuijluwKlzIOnc2gntoI-U83ZsrJACLcBGAsYHQ/s1600/rclone_logo.png")
196207
embed1.set_footer(text="Source and Destination IDs can be found by finding the jumbled up letters & numbers at the end of a GDrive folder / file URL. Example: 1Zsh8DctvvWZzJgiEI_sqxVoxvKv9VsYp",icon_url="https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Google_Drive_logo.png/1200px-Google_Drive_logo.png")
197208
await ctx.send(embed=embed1)
198209
else:
@@ -202,7 +213,7 @@ async def help(ctx, command: Optional[str]):
202213

203214
# = = = = { GCLONE BOT COMMANDS } = = = =
204215
# All bot commands here can be ran more than once at the same time, but running too many commands at once can create problems that you don't want.
205-
# It is recommended you not touch most of this code if you don't know what you are doing.
216+
# It is recommended you not touch most of this code if you don't know what you are doing!
206217
# As of now, there is no code for checking GDrive Folder IDs so you probably have to check a folder for yourself or check logs.
207218

208219
# GClone Folder / File Clone Command
@@ -350,7 +361,7 @@ async def purge(ctx, source):
350361
print("===========================================================================[PURGED DIRECTORY]===========================================================================")
351362

352363

353-
# CloneCord Error Messages
364+
# CloneCord Error Messages to make the bot have a command cooldown and send error messages about invalid commands / arguments
354365
@clone.error
355366
@move.error
356367
@sync.error
@@ -384,5 +395,5 @@ async def ping(ctx: commands.Context):
384395
await message.edit(content=f":ping_pong: *Pong!* **`{round(bot.latency * 1000)}ms`** :ping_pong:\n:ping_pong: **API Ping:** **`{round((end_time - start_time) * 1000)}ms`** :ping_pong:")
385396
print("||=- - - - - - - - > Pinged! < - - - - - - - -=||")
386397

387-
# Start the bot
398+
# Start the bot, DO NOT TOUCH!
388399
bot.run(token)

0 commit comments

Comments
 (0)