Change in contributers only

This commit is contained in:
annihilator708 2018-05-21 05:20:47 +02:00
parent 9b410e0b48
commit 42d8c2e7c8
3 changed files with 14 additions and 11 deletions

View File

@ -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(

View File

@ -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:

View File

@ -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)