From 42d8c2e7c86f8a6a6f486d4ff23300fad2d59f46 Mon Sep 17 00:00:00 2001 From: annihilator708 Date: Mon, 21 May 2018 05:20:47 +0200 Subject: [PATCH] Change in contributers only --- src/cogs/code.py | 6 +++--- src/cogs/contributors.py | 15 +++++++++------ src/cogs/git.py | 4 ++-- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/cogs/code.py b/src/cogs/code.py index c288ee8..45cf0b6 100644 --- a/src/cogs/code.py +++ b/src/cogs/code.py @@ -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( diff --git a/src/cogs/contributors.py b/src/cogs/contributors.py index 3933f9d..b64824e 100644 --- a/src/cogs/contributors.py +++ b/src/cogs/contributors.py @@ -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)) \ No newline at end of file diff --git a/src/cogs/git.py b/src/cogs/git.py index 7c83f98..fa1e3b5 100644 --- a/src/cogs/git.py +++ b/src/cogs/git.py @@ -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)