Skip to content

Commit 7484753

Browse files
committed
close #187
1 parent 78169c0 commit 7484753

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cogs/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,8 @@ async def make(self, ctx, name, *, content):
10561056
'''Create a custom command! Include `{pycc}` in the content to specify a pycc!'''
10571057
git = self.bot.get_cog('Git')
10581058
if not await git.starred('verixx/selfbot.py'): return await ctx.send('**This command is disabled as the user have not starred <https://github.com/verixx/selfbot.py>**')
1059+
if discord.utils.get(bot.commands, name=name) != None:
1060+
return await ctx.send('This is already an existing command.')
10591061
with open('data/cc.json') as f:
10601062
commands = json.load(f)
10611063
try:

0 commit comments

Comments
 (0)