Skip to content

Commit

Permalink
❕aaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperAnt220 committed Sep 15, 2024
1 parent 7ad2a00 commit b7f60d2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions utils/fake_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)

0 comments on commit b7f60d2

Please sign in to comment.