diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-06-02 07:29:45 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-06-02 07:29:45 +0000 |
commit | 29921b0d9a5a5a719669c4772dcafa4ab3c786e1 (patch) | |
tree | 2621ffc4d3fc9659ce22fbf873c4cf463f6b872c /cogs/utils.py | |
parent | d7d868a43adb2bd3f89b4400288a397960e85769 (diff) | |
download | steve-bot-29921b0d9a5a5a719669c4772dcafa4ab3c786e1.tar steve-bot-29921b0d9a5a5a719669c4772dcafa4ab3c786e1.tar.gz steve-bot-29921b0d9a5a5a719669c4772dcafa4ab3c786e1.tar.bz2 steve-bot-29921b0d9a5a5a719669c4772dcafa4ab3c786e1.tar.lz steve-bot-29921b0d9a5a5a719669c4772dcafa4ab3c786e1.tar.xz steve-bot-29921b0d9a5a5a719669c4772dcafa4ab3c786e1.tar.zst steve-bot-29921b0d9a5a5a719669c4772dcafa4ab3c786e1.zip |
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
Diffstat (limited to '')
-rwxr-xr-x[-rw-r--r--] | cogs/utils.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cogs/utils.py b/cogs/utils.py index b7bc9f3..7a1d79c 100644..100755 --- 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) |