Merge pull request #104 from classabbyamp/echo-cmd

add command to echo a message as the bot in a channel
This commit is contained in:
Abigail Gold 2019-12-18 10:21:17 -05:00 committed by GitHub
commit 26765e86b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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()