From b7f60d2d8f2832e249cc1b3223e3b9d6b440c716 Mon Sep 17 00:00:00 2001 From: SuperAnt220 Date: Sun, 15 Sep 2024 18:33:11 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9D=95aaaa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/fake_user.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/utils/fake_user.py b/utils/fake_user.py index 2278e49..d5c08d7 100644 --- a/utils/fake_user.py +++ b/utils/fake_user.py @@ -4,7 +4,7 @@ from pymongo.mongo_client import MongoClient from settings import MONGO_URI, DISCORD_API_SECRET - +from utils.shortcuts import no_ping db = MongoClient(MONGO_URI).antbot.webhook_channels @@ -29,14 +29,13 @@ async def fake_send(user, channel, content, attachments=MISSING, embeds=MISSING) user_copy_webhook = await channel.create_webhook(name=".") db.insert_one({"_id": channel.id, "webhook_id": user_copy_webhook.id}) # - content.replace("@", "") if isinstance(content, list): for text in content: if text == content[-1]: await user_copy_webhook.send(content=text, avatar_url=user.display_avatar.url, username=user.display_name, - files=files, thread=thread) + files=files, thread=thread, allowed_mentions=no_ping) else: - await user_copy_webhook.send(content=text, avatar_url=user.display_avatar.url, username=user.display_name, thread=thread) + await user_copy_webhook.send(content=text, avatar_url=user.display_avatar.url, username=user.display_name, thread=thread, allowed_mentions=no_ping) else: await user_copy_webhook.send(content=content, avatar_url=user.display_avatar.url, username=user.display_name, - thread=thread, files=files) + thread=thread, files=files, allowed_mentions=no_ping)