Contributors now can use git
This commit is contained in:
parent
038cfa9d8b
commit
5e0e4fd4ab
@ -46,9 +46,10 @@ class Git:
|
||||
pass
|
||||
|
||||
@git.command()
|
||||
@commands.is_owner()
|
||||
async def pull(self, ctx):
|
||||
async with ctx.typing():
|
||||
await ctx.trigger_typing()
|
||||
if ctx.author.id not in self.bot.ownerlist:
|
||||
return await ctx.send('Only my creator can use me like this :blush:', delete_after=10)
|
||||
em = discord.Embed(style='rich',
|
||||
title=f'Git Pull',
|
||||
color=self.bot.embed_color)
|
||||
@ -69,8 +70,10 @@ class Git:
|
||||
await ctx.send(embed=em)
|
||||
|
||||
@git.command()
|
||||
@commands.is_owner()
|
||||
async def status(self, ctx):
|
||||
await ctx.trigger_typing()
|
||||
if ctx.author.id not in self.bot.ownerlist:
|
||||
return await ctx.send('Only my creator can use me like this :blush:', delete_after=10)
|
||||
em = discord.Embed(style='rich',
|
||||
title=f'Git Pull',
|
||||
color=self.bot.embed_color)
|
||||
|
||||
@ -18,7 +18,7 @@ class Upload:
|
||||
"""Reload an extension."""
|
||||
|
||||
if ctx.author.id not in self.bot.ownerlist:
|
||||
return await ctx.send('Only my creator can use me like this :blush:', delete_after=1)
|
||||
return await ctx.send('Only my creator can use me like this :blush:', delete_after=10)
|
||||
|
||||
extension = extension.lower()
|
||||
try:
|
||||
@ -34,7 +34,7 @@ class Upload:
|
||||
async def reloadall(self, ctx):
|
||||
"""Reload all extensions."""
|
||||
if ctx.author.id not in self.bot.ownerlist:
|
||||
return await ctx.send('Only my creator can use me like this :blush:', delete_after=1)
|
||||
return await ctx.send('Only my creator can use me like this :blush:', delete_after=10)
|
||||
|
||||
try:
|
||||
for extension in self.bot.extensions:
|
||||
@ -48,7 +48,7 @@ class Upload:
|
||||
async def unload(self, ctx, *, extension: str):
|
||||
"""Unload an extension."""
|
||||
if ctx.author.id not in self.bot.ownerlist:
|
||||
return await ctx.send('Only my creator can use me like this :blush:', delete_after=1)
|
||||
return await ctx.send('Only my creator can use me like this :blush:', delete_after=10)
|
||||
|
||||
extension = extension.lower()
|
||||
try:
|
||||
@ -66,7 +66,7 @@ class Upload:
|
||||
async def load(self, ctx, *, extension: str):
|
||||
"""Load an extension."""
|
||||
if ctx.author.id not in self.bot.ownerlist:
|
||||
return await ctx.send('Only my creator can use me like this :blush:', delete_after=1)
|
||||
return await ctx.send('Only my creator can use me like this :blush:', delete_after=10)
|
||||
|
||||
extension = extension.lower()
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user