From 29921b0d9a5a5a719669c4772dcafa4ab3c786e1 Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Tue, 2 Jun 2020 08:29:45 +0100 Subject: modified: .gitignore modified: .vscode/settings.json modified: bot.py modified: cogs/admin.py modified: cogs/general.py modified: cogs/help.py modified: cogs/player.py modified: cogs/src.py modified: cogs/trans.py modified: cogs/utils.py modified: custom_commands.json modified: main.py --- cogs/utils.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) mode change 100644 => 100755 cogs/utils.py (limited to 'cogs/utils.py') diff --git a/cogs/utils.py b/cogs/utils.py old mode 100644 new mode 100755 index b7bc9f3..7a1d79c --- a/cogs/utils.py +++ b/cogs/utils.py @@ -21,12 +21,12 @@ async def reportStuff(self, ctx, message): channel = self.bot.get_channel(715549209998262322) embed = discord.Embed( - title=f"Report from {ctx.message.author.name}", + title=f"Report from {ctx.message.author}", description=f"{message}", color=ctx.message.author.color, timestamp=ctx.message.created_at) await channel.send(embed=embed) - await ctx.send("Report has been submitted") + await ctx.author.send("Report has been submitted") class Utils(commands.Cog): @@ -134,8 +134,10 @@ class Utils(commands.Cog): @commands.cooldown(1, 60, commands.BucketType.member) @commands.command() async def report(self, ctx, *, message=None): + if ctx.message.guild != None: + await ctx.message.delete() if message == None: - await ctx.send("Please type a report to report (hehe, sounds funny)") + await ctx.message.author.send("Please type a report to report (hehe, sounds funny)") else: await reportStuff(self, ctx, message) -- cgit v1.2.3