Browse Source

minor adjustments

master
Anonymous 1 month ago
parent
commit
df531a001a
2 changed files with 6 additions and 2 deletions
  1. 2
    1
      antipedo.py
  2. 4
    1
      tools.py

+ 2
- 1
antipedo.py View File

@@ -425,6 +425,8 @@ def trackPublicChats(update,context):
if chat.type=="private" or str(chat.id) in chan_list:
return

debug.warning(f"Bot was added to {chat.title}")

try:
chan_list[chat.id] = {
"full_name": chat.full_name or chat.title,
@@ -447,6 +449,5 @@ dispatcher.add_handler(CommandHandler("add_filter", updatePicBlacklist))
dispatcher.add_handler(CommandHandler("meta", metaInformation))
dispatcher.add_handler(CommandHandler("op", giveOP))
dispatcher.add_handler(CommandHandler(["help","start"] , start))
dispatcher.add_handler(MessageHandler( Filters.all & ~Filters.command & ~Filters.video & ~Filters.photo & ~Filters.animation ,trackPublicChats))

updater.start_polling()

+ 4
- 1
tools.py View File

@@ -46,8 +46,11 @@ You can check exposed users at @Pedo_Hunters_Channel.
- check if they have actually posted CP, joined explicit pedo groups, associated and defended known pedos, explicitly said to be attracted/have fucked prepubescent kids
- if the evidence is compelling we post it and blacklist the user

<u><b>How trustworthy your blacklist is?</b></u>
We don't blacklist users unless we have concrete evidence. If CP was shared in one of the groups you were participating in that's not your fault. But if CP was regularly shared or neither the mods nor the users took action against the content, continuing to participate is your fault.

<u><b>How can I use this bot?</b></u>
You can add the bot to your group and give it ban permission if you want. Your moderators of group have to start the bot in order to receive PM alert messages. To feedback or report an incident, you can use /report option. To check status of the bot, use /meta command."""

BOT_ADDED_MESSAGE = """ Welcome to Anti-Pedo bot. If you want the bot to detect CP media you have to give him admin previleges since it can't read messages without it because of telegram api limitations, if you don't need this feature you don't need to, it's up to you.
Even though you don't give the bot enough permissions bot can handle it. When it can't ban users it sends moderators a warning private message instead. Moderators and admins who wants to receive this warning notifications should start pm conversation with bot. """
Even though you don't give the bot enough permissions, bot can handle it. When it can't ban users it sends moderators a warning private message instead. Moderators and admins who wants to receive this warning notifications should start pm conversation with bot. """

Loading…
Cancel
Save