From 4928195c148918c85d066dbc21b8ec08b24c1d49 Mon Sep 17 00:00:00 2001 From: Okk Hex <78189163+okkhex@users.noreply.github.com> Date: Tue, 8 Jul 2025 22:29:57 +0530 Subject: [PATCH] fix(spam): correct asyncio.wait usage and improve validation --- plugins/spam_1749984496021_jym41m.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/spam_1749984496021_jym41m.py b/plugins/spam_1749984496021_jym41m.py index f0001d3d..ea3664e6 100644 --- a/plugins/spam_1749984496021_jym41m.py +++ b/plugins/spam_1749984496021_jym41m.py @@ -54,7 +54,8 @@ async def spammer(e): return await eod(e, "`Use bigspam cmd`") except BaseException: return await eod(e, "`Use in Proper Format`") - await asyncio.wait([e.respond(spam_message) for i in range(counter)]) + tasks = [asyncio.create_task(e.respond(spam_message)) for _ in range(counter)] + await asyncio.wait(tasks) await e.delete()