Skip to content

Commit

Permalink
disable spam cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
tristiisch committed Nov 13, 2023
1 parent f3e7323 commit 3106db3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pyramid/connector/discord/bot_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3106db3

Please sign in to comment.