From 329a88d12b9d3e85197da18b7e81d907f4527a1d Mon Sep 17 00:00:00 2001 From: PredaaA <46051820+PredaaA@users.noreply.github.com> Date: Wed, 11 Dec 2019 18:51:30 +0100 Subject: [PATCH] Update otherbot.py (#86) --- otherbot/otherbot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/otherbot/otherbot.py b/otherbot/otherbot.py index dda8bd7..b9b3b7c 100644 --- a/otherbot/otherbot.py +++ b/otherbot/otherbot.py @@ -28,7 +28,13 @@ class Otherbot(BaseCog): @otherbot.command() async def channel(self, ctx, channel: discord.TextChannel = None): - """Sets the channel to report in.""" + """ + Sets the channel to report in. + + Default to the current one. + """ + if not channel: + channel = ctx.channel await self.config.guild(ctx.guild).reporting.set(channel.id) await ctx.send(f"Reporting channel set to: {channel.mention}.")