Browse Source

speak: add

main
Ave Ozkal 2 years ago
parent
commit
722fd77ca8
2 changed files with 14 additions and 7 deletions
  1. +0
    -7
      cogs/admin.py
  2. +14
    -0
      cogs/mod.py

+ 0
- 7
cogs/admin.py View File

@ -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
- 0
cogs/mod.py View File

@ -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…
Cancel
Save