1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-03 00:23:13 +00:00
Lumi/modules/say.py

28 lines
583 B
Python
Raw Normal View History

2023-07-31 18:05:12 +00:00
import logging
import discord
from discord.ext import commands
2024-02-28 13:07:16 +00:00
from lib import checks
2023-07-31 18:05:12 +00:00
2024-02-28 13:01:20 +00:00
logs = logging.getLogger('Racu.Core')
2023-07-31 18:05:12 +00:00
class SayCog(commands.Cog):
2024-02-28 13:01:20 +00:00
def __init__(self, client):
2024-02-28 13:11:22 +00:00
self.client = client
2023-07-31 18:05:12 +00:00
@commands.slash_command(
2024-02-28 14:59:07 +00:00
name="say",
description="Bot admin only.",
2023-07-31 18:05:12 +00:00
guild_only=True
)
2024-02-28 13:01:20 +00:00
@commands.check(checks.bot_owner)
2024-02-28 14:59:07 +00:00
async def say(self, ctx, *, txt: discord.Option(str)):
2023-07-31 18:05:12 +00:00
await ctx.respond(content="", ephemeral=True)
await ctx.send(content=txt)
2024-02-28 13:01:20 +00:00
def setup(client):
client.add_cog(SayCog(client))