mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-15 12:42:02 -05:00
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
This commit is contained in:
parent
64cfdeec1e
commit
ba1b7e947f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user