mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 22:23:13 +00:00
28 lines
597 B
Python
28 lines
597 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.is_owner()
|
|
@commands.guild_only()
|
|
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))
|