speak: add
This commit is contained in:
parent
5eac0b1a81
commit
d38b1a8065
2 changed files with 14 additions and 7 deletions
|
@ -18,13 +18,6 @@ class AdminCog:
|
|||
def check_if_bot_manager(ctx):
|
||||
return any(r.id == config.bot_manager_role_id for r in ctx.author.roles)
|
||||
|
||||
@commands.guild_only()
|
||||
@commands.check(check_if_staff)
|
||||
@commands.command(aliases=['echo'], hidden=True)
|
||||
async def say(self, ctx, *, the_text: str):
|
||||
"""Repeats a given text, staff only."""
|
||||
await ctx.send(the_text)
|
||||
|
||||
@commands.guild_only()
|
||||
@commands.check(check_if_bot_manager)
|
||||
@commands.command(name='exit', hidden=True)
|
||||
|
|
14
cogs/mod.py
14
cogs/mod.py
|
@ -221,6 +221,20 @@ class ModCog:
|
|||
await log_channel.send(chan_message)
|
||||
await ctx.send(f"{safe_name} is now b&. 👍")
|
||||
|
||||
@commands.guild_only()
|
||||
@commands.check(check_if_staff)
|
||||
@commands.command(aliases=['echo'])
|
||||
async def say(self, ctx, *, the_text: str):
|
||||
"""Repeats a given text, staff only."""
|
||||
await ctx.send(the_text)
|
||||
|
||||
@commands.guild_only()
|
||||
@commands.check(check_if_staff)
|
||||
@commands.command()
|
||||
async def speak(self, ctx, channel: discord.TextChannel, *, the_text: str):
|
||||
"""Repeats a given text in a given channel, staff only."""
|
||||
await channel.send(the_text)
|
||||
|
||||
@commands.guild_only()
|
||||
@commands.bot_has_permissions(ban_members=True)
|
||||
@commands.check(check_if_staff)
|
||||
|
|
Loading…
Reference in a new issue