Add [SCAM]

This commit is contained in:
blank X 2021-03-22 00:03:01 +07:00
parent 7c444f9dc7
commit 67ad2cc4e5
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
4 changed files with 22 additions and 0 deletions

View File

@ -23,6 +23,8 @@ def _generate_sexy(entity, ping, is_creator):
sexy_text += ' <code>[SUPPORT]</code>'
if entity.is_scam:
sexy_text += ' <code>[SCAM]</code>'
if getattr(entity, 'is_fake', None):
sexy_text += ' <code>[FAKE]</code>'
if is_creator:
sexy_text += ' <code>[CREATOR]</code>'
return sexy_text

View File

@ -25,6 +25,8 @@ def _generate_sexy(entity, ping):
sexy_text += ' <code>[SUPPORT]</code>'
if entity.is_scam:
sexy_text += ' <code>[SCAM]</code>'
if getattr(entity, 'is_fake', None):
sexy_text += ' <code>[FAKE]</code>'
return sexy_text
@Client.on_message(~filters.forwarded & ~filters.sticker & ~filters.via_bot & ~filters.edited & filters.me & filters.command(['info', 'whois'], prefixes=config['config']['prefixes']))

View File

@ -40,6 +40,8 @@ async def log_forwards(client, message):
chat_text += '<code>[SUPPORT]</code> '
if message.chat.is_scam:
chat_text += '<code>[SCAM]</code> '
if getattr(message.chat, 'is_fake', None):
chat_text += '<code>[FAKE]</code> '
text += f'[<code>{message.chat.id}</code>]'
if message.chat.type != 'channel':
if message.from_user:
@ -53,6 +55,8 @@ async def log_forwards(client, message):
user_text += ' <code>[SUPPORT]</code>'
if message.from_user.is_scam:
user_text += ' <code>[SCAM]</code>'
if getattr(message.from_user, 'is_fake', None):
user_text += ' <code>[FAKE]</code>'
user_text += f' [<code>{message.from_user.id}</code>]'
elif message.sender_chat and message.sender_chat.id != message.chat.id:
user_text = html.escape(message.sender_chat.title)
@ -64,6 +68,8 @@ async def log_forwards(client, message):
user_text += ' <code>[SUPPORT]</code>'
if message.sender_chat.is_scam:
user_text += ' <code>[SCAM]</code>'
if getattr(message.sender_chat, 'is_fake', None):
user_text += ' <code>[FAKE]</code>'
else:
user_text = 'Anonymous'
text += f'\n- <b>Forwarder:</b> {user_text}'
@ -85,6 +91,8 @@ async def log_forwards(client, message):
user_text += ' <code>[SUPPORT]</code>'
if forwardee.is_scam:
user_text += ' <code>[SCAM]</code>'
if getattr(forwardee, 'is_fake', None):
user_text += ' <code>[FAKE]</code>'
text += f'{user_text} [<code>{forwardee.id}</code>]'
log_ring.append(text)
logged[message.chat.id].add(message.message_id)

View File

@ -25,6 +25,8 @@ async def log_reports(client, message):
chat_text += '<code>[SUPPORT]</code> '
if message.chat.is_scam:
chat_text += '<code>[SCAM]</code> '
if getattr(message.chat, 'is_fake', None):
chat_text += '<code>[FAKE]</code> '
text += f'[<code>{message.chat.id}</code>]\n- <b>Reporter:</b> '
if message.from_user:
user_text = message.from_user.first_name
@ -37,6 +39,8 @@ async def log_reports(client, message):
user_text += ' <code>[SUPPORT]</code>'
if message.from_user.is_scam:
user_text += ' <code>[SCAM]</code>'
if getattr(message.from_user, 'is_fake', None):
user_text += ' <code>[FAKE]</code>'
user_text += f' [<code>{message.from_user.id}</code>]'
elif message.sender_chat and message.sender_chat.id != message.chat.id:
user_text = html.escape(message.sender_chat.title)
@ -48,6 +52,8 @@ async def log_reports(client, message):
user_text += ' <code>[SUPPORT]</code>'
if message.sender_chat.is_scam:
user_text += ' <code>[SCAM]</code>'
if getattr(message.sender_chat, 'is_fake', None):
user_text += ' <code>[FAKE]</code>'
else:
user_text = 'Anonymous'
text += f'{user_text}\n'
@ -73,6 +79,8 @@ async def log_reports(client, message):
user_text += ' <code>[SUPPORT]</code>'
if reply.from_user.is_scam:
user_text += ' <code>[SCAM]</code>'
if getattr(reply.from_user, 'is_fake', None):
user_text += ' <code>[FAKE]</code>'
user_text += f' [<code>{reply.from_user.id}</code>]'
elif reply.sender_chat and reply.sender_chat.id != reply.chat.id:
user_text = html.escape(reply.sender_chat.title)
@ -84,6 +92,8 @@ async def log_reports(client, message):
user_text += ' <code>[SUPPORT]</code>'
if reply.sender_chat.is_scam:
user_text += ' <code>[SCAM]</code>'
if getattr(reply.sender_chat, 'is_fake', None):
user_text += ' <code>[FAKE]</code>'
else:
user_text = 'Anonymous'
text += f'{user_text}\n- <b><a href="{reply.link}">Reported Message'