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

28 lines
610 B
Python

import logging
import discord
from discord.ext import commands
from lib import checks
logs = logging.getLogger('Racu.Core')
class SayCog(commands.Cog):
def __init__(self, client):
self.client = client
@commands.slash_command(
name="say",
description="Bot admin only.",
guild_only=True
)
@commands.guild_only()
@commands.check(checks.bot_owner)
async def say(self, ctx, *, txt: discord.Option(str)):
await ctx.respond(content="", ephemeral=True)
await ctx.send(content=txt)
def setup(client):
client.add_cog(SayCog(client))