blob: 81811ba1c276e4845a6c7f22c0f3e1054aa48943 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# This file is part of Senator Sperma
# Licensed under the GPL-3.0 License
# Copyright (C) 2026 Salmonik @ salmonik@tuta.io
# https://codeberg.org/salmonik/senator-sperma
from discord.ext import commands
import discord
import logging
logger = logging.getLogger(__name__)
class Say(commands.Cog):
def __init__(self, bot):
self.bot = bot
@discord.slash_command(name="say", description="senator, gadaj")
async def say(
self,
ctx: discord.ApplicationContext,
text: str = discord.Option(str, "Tekst do przeczytania", required=True)
):
await ctx.defer()
await ctx.respond(content="\u200b", ephemeral=True)
await ctx.interaction.delete_original_response()
await ctx.send(content=text)
def setup(bot):
bot.add_cog(Say(bot))
|