From 3106db374d48ba0d0efb0a298e5f96b3ff1049c7 Mon Sep 17 00:00:00 2001 From: Tristiisch Date: Mon, 13 Nov 2023 07:01:14 +0100 Subject: [PATCH] disable spam cmd --- src/pyramid/connector/discord/bot_cmd.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pyramid/connector/discord/bot_cmd.py b/src/pyramid/connector/discord/bot_cmd.py index 5f2cf0e..06d4ef2 100644 --- a/src/pyramid/connector/discord/bot_cmd.py +++ b/src/pyramid/connector/discord/bot_cmd.py @@ -285,14 +285,14 @@ async def cmd_play_url_next(ctx: Interaction, url: str): await guild_cmd.play_url(ms, ctx, url, at_end=False) - @bot.tree.command(name="spam", description="Test spam") - async def cmd_spam(ctx: Interaction): - ms = MessageSenderQueued(ctx) - await ms.waiting() - - for i in range(100): - ms.add_message(f"Spam n°{i}") - await ctx.response.send_message("Spam ended") + # @bot.tree.command(name="spam", description="Test spam") + # async def cmd_spam(ctx: Interaction): + # ms = MessageSenderQueued(ctx) + # await ms.waiting() + + # for i in range(100): + # ms.add_message(f"Spam n°{i}") + # await ctx.response.send_message("Spam ended") async def __use_on_guild_only(self, ctx: Interaction) -> bool: if ctx.guild is None: