From ba1b7e947f20ab5c59fdeaa4cc37aa489da67f20 Mon Sep 17 00:00:00 2001 From: Abigail Date: Tue, 10 Dec 2019 00:47:40 -0500 Subject: [PATCH] add command to echo a message as the bot in a channel. Command errors are not handled because that will be done in #22. Fixes #77 --- exts/base.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/exts/base.py b/exts/base.py index 4adb6cb..75c7a97 100644 --- a/exts/base.py +++ b/exts/base.py @@ -163,6 +163,13 @@ class BaseCog(commands.Cog): await ctx.send(embed=embed) + @commands.command(name="echo", aliases=["e"], hidden=True) + @commands.check(cmn.check_if_owner) + async def _echo(self, ctx: commands.Context, channel: commands.TextChannelConverter, *, msg: str): + """Send a message in a channel as qrm. Only works within a server or DM to server, + not between servers.""" + await channel.send(msg) + def parse_changelog(): changelog = OrderedDict()