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__)
|
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):
|
async def _eval(self, ctx, *, body: str = None):
|
||||||
"""
|
"""
|
||||||
Execute python code in discord chat.
|
Execute python code in discord chat.
|
||||||
@ -42,8 +42,8 @@ class REPL:
|
|||||||
Example:
|
Example:
|
||||||
- exec print(546132)
|
- exec print(546132)
|
||||||
"""
|
"""
|
||||||
if ctx.message.author.id not in self.bot.ownerlist:
|
if ctx.author.id not in self.bot.ownerlist:
|
||||||
return await ctx.send('Only the owner of this bot can use this command')
|
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||||
|
|
||||||
if body is None:
|
if body is None:
|
||||||
return await ctx.send(
|
return await ctx.send(
|
||||||
|
|||||||
@ -16,9 +16,9 @@ class Upload:
|
|||||||
@commands.command()
|
@commands.command()
|
||||||
async def reload(self, ctx, *, extension: str):
|
async def reload(self, ctx, *, extension: str):
|
||||||
"""Reload an extension."""
|
"""Reload an extension."""
|
||||||
|
await ctx.trigger_typing()
|
||||||
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=10)
|
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||||
|
|
||||||
extension = extension.lower()
|
extension = extension.lower()
|
||||||
try:
|
try:
|
||||||
@ -33,8 +33,9 @@ class Upload:
|
|||||||
@commands.command()
|
@commands.command()
|
||||||
async def reloadall(self, ctx):
|
async def reloadall(self, ctx):
|
||||||
"""Reload all extensions."""
|
"""Reload all extensions."""
|
||||||
|
await ctx.trigger_typing()
|
||||||
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=10)
|
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for extension in self.bot.extensions:
|
for extension in self.bot.extensions:
|
||||||
@ -47,8 +48,9 @@ class Upload:
|
|||||||
@commands.command()
|
@commands.command()
|
||||||
async def unload(self, ctx, *, extension: str):
|
async def unload(self, ctx, *, extension: str):
|
||||||
"""Unload an extension."""
|
"""Unload an extension."""
|
||||||
|
await ctx.trigger_typing()
|
||||||
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=10)
|
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||||
|
|
||||||
extension = extension.lower()
|
extension = extension.lower()
|
||||||
try:
|
try:
|
||||||
@ -65,8 +67,9 @@ class Upload:
|
|||||||
@commands.command()
|
@commands.command()
|
||||||
async def load(self, ctx, *, extension: str):
|
async def load(self, ctx, *, extension: str):
|
||||||
"""Load an extension."""
|
"""Load an extension."""
|
||||||
|
await ctx.trigger_typing()
|
||||||
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=10)
|
return await ctx.send('Only my contributors can use me like this :blush:', delete_after=10)
|
||||||
|
|
||||||
extension = extension.lower()
|
extension = extension.lower()
|
||||||
try:
|
try:
|
||||||
|
|||||||
@ -49,7 +49,7 @@ class Git:
|
|||||||
async def pull(self, ctx):
|
async def pull(self, ctx):
|
||||||
await ctx.trigger_typing()
|
await ctx.trigger_typing()
|
||||||
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=10)
|
return await ctx.send('Only my contributors 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)
|
||||||
@ -73,7 +73,7 @@ class Git:
|
|||||||
async def status(self, ctx):
|
async def status(self, ctx):
|
||||||
await ctx.trigger_typing()
|
await ctx.trigger_typing()
|
||||||
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=10)
|
return await ctx.send('Only my contributors 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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user