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