Change in contributers only
This commit is contained in:
parent
9b410e0b48
commit
42d8c2e7c8
@ -29,7 +29,7 @@ class REPL:
|
||||
return '{0.text}{1:>{0.offset}}\n{2}: {0}'.format(e, '^', type(e).__name__)
|
||||
|
||||
|
||||
@commands.command(hidden=True, name='exec')
|
||||
@commands.command(name='exec')
|
||||
async def _eval(self, ctx, *, body: str = None):
|
||||
"""
|
||||
Execute python code in discord chat.
|
||||
@ -42,8 +42,8 @@ class REPL:
|
||||
Example:
|
||||
- exec print(546132)
|
||||
"""
|
||||
if ctx.message.author.id not in self.bot.ownerlist:
|
||||
return await ctx.send('Only the owner of this bot can use this command')
|
||||
if ctx.author.id not in self.bot.ownerlist:
|
||||
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||
|
||||
if body is None:
|
||||
return await ctx.send(
|
||||
|
||||
@ -16,9 +16,9 @@ class Upload:
|
||||
@commands.command()
|
||||
async def reload(self, ctx, *, extension: str):
|
||||
"""Reload an extension."""
|
||||
|
||||
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)
|
||||
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||
|
||||
extension = extension.lower()
|
||||
try:
|
||||
@ -33,8 +33,9 @@ class Upload:
|
||||
@commands.command()
|
||||
async def reloadall(self, ctx):
|
||||
"""Reload all extensions."""
|
||||
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)
|
||||
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||
|
||||
try:
|
||||
for extension in self.bot.extensions:
|
||||
@ -47,8 +48,9 @@ class Upload:
|
||||
@commands.command()
|
||||
async def unload(self, ctx, *, extension: str):
|
||||
"""Unload an extension."""
|
||||
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)
|
||||
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||
|
||||
extension = extension.lower()
|
||||
try:
|
||||
@ -65,8 +67,9 @@ class Upload:
|
||||
@commands.command()
|
||||
async def load(self, ctx, *, extension: str):
|
||||
"""Load an extension."""
|
||||
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)
|
||||
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||
|
||||
extension = extension.lower()
|
||||
try:
|
||||
@ -83,7 +86,7 @@ class Upload:
|
||||
"""triggers error to test traceback"""
|
||||
await ctx.send(a)
|
||||
|
||||
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Upload(bot))
|
||||
@ -49,7 +49,7 @@ class Git:
|
||||
async def pull(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)
|
||||
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||
em = discord.Embed(style='rich',
|
||||
title=f'Git Pull',
|
||||
color=self.bot.embed_color)
|
||||
@ -73,7 +73,7 @@ class Git:
|
||||
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)
|
||||
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||
em = discord.Embed(style='rich',
|
||||
title=f'Git Pull',
|
||||
color=self.bot.embed_color)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user