Ejemplo n.º 1
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(get_string("gbans", "GBANS_ON", lang.get_lang(update.effective_chat.id))) # GBANS_ON
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(get_string("gbans", "GBANS_OFF", lang.get_lang(update.effective_chat.id))) # GBANS_OFF
    else:
        update.effective_message.reply_text(get_string("gbans", "GBAN_NO_ARGS", lang.get_lang(update.effective_chat.id)).format(sql.does_chat_gban(update.effective_chat.id))) # GBAN_NO_ARGS
Ejemplo n.º 2
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["روشن", "فعال"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("تحریم_گر روشن شد  "
                                                "اسپمر های معروف رو ریموو میکنم!")
        elif args[0].lower() in ["خاموش", "غیرفعال"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("تحریم_گر خاموش شد "
                                                "خودتون مراقب گپتون باشید پس!")
    else:
        update.effective_message.reply_text("من فقط دستورات روشن\فعال و خاموش\غیرفعال رو میشناسم!\n\n"
                                            "حالت تحریم_گر گپ شما: {}\n".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 3
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("???? ????? ?? ?? ????? ! ???? ?? ??? ?????  "
                                                "?? ??? ???? ???? ?? ???? ????? ?? ???? ?????!")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("???? ????? ?? ????? ????? ?? ????? "
                                                "??? ?? ?????? ?? ???? ????? ??? ??? ??? ????")
    else:
        update.effective_message.reply_text("??? ??????? on/yes ? off/no ?? ???? ?????!\n\n"
                                            "???? ????? ?? ?? ??? ?? ??? ????: {}\n"
                                            "???? ???? true ???? . ??? ???? ????? ??? ???? ??? ? ?? ??????? ????? ????. "
                                            "???? ???? false ?? ???? ?? ???? ?? ?? ?????".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 4
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("Bu qrupda gbanlar aktiv edildi. Bu, "
                                                "spam göndəricilərdən, xoşagəlməz simvollardan və ən böyük trollardan qorunmağa kömək edəcəkdir.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("Bu qrupda gbanlar deaktiv edildi. Artıq gban istifadəçilərə təsir etməyəcək. "
                                                "Bu, spam göndəricilərdən və trollardan daha az müdafiə deməkdir")
    else:
        update.effective_message.reply_text("Ayarlamaq üçün mənə arqument verməlisən! on/off, yes/no!\n\n"
                                            "Hazırki vəziyyət: {}\n"
                                            "True olduqda, baş verən hər hansı bir gban qrupunuzda da baş verəcəkdir. "
                                            "False olduqda, gban işləməyəcək və qrupunuzun taleyi spammerlərin mərhəmətinə "
                                            "qalacaq.".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 5
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("මම මෙම කණ්ඩායමේ gbans සක්‍රීය කර ඇත. මෙය ඔබව ආරක්ෂා කිරීමට උපකාරී වේ "
                                                "අයාචිත තැපැල්, අප්‍රසන්න චරිත සහ විශාලතම ට්‍රෝලර් වලින්.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("මම මෙම කණ්ඩායමේ gbans අක්‍රීය කර ඇත. GBans ඔබගේ පරිශීලකයින්ට බලපාන්නේ නැත "
                                                "තවදුරටත්. ඕනෑම ට්‍රෝලර් සහ ස්පෑම්කරුවන්ගෙන් ඔබව අඩු ආරක්ෂාවක් ලැබෙනු ඇත "
                                                "නමුත්!")
    else:
        update.effective_message.reply_text("Gපසුබිමක් තෝරා ගැනීමට මට තර්ක කිහිපයක් ඉදිරිපත් කරන්න! on/off, yes/no!\n\n"
                                            "ඔබගේ වර්තමාන සැකසුම: {}\n"
                                            "සත්‍ය වූ විට, සිදුවන ඕනෑම gban ඔබේ කණ්ඩායම තුළ ද සිදුවනු ඇත."
                                            "අසත්‍ය වූ විට, ඔවුන් එසේ නොකරනු ඇත "
                                            "spammers.".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 6
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("I've enabled gbans in this group. This will help protect you "
                                                "from spammers, unsavoury characters, and the biggest trolls.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("I've disabled gbans in this group. GBans wont affect your users "
                                                "anymore. You'll be less protected from any trolls and spammers "
                                                "though!")
    else:
        update.effective_message.reply_text("Give me some arguments to choose a setting! on/off, yes/no!\n\n"
                                            "Your current setting is: {}\n"
                                            "When True, any gbans that happen will also happen in your group. "
                                            "When False, they won't, leaving you at the possible mercy of "
                                            "spammers.".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 7
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("Włączyłem globalne bany dla tej grupy. To pomoże ci uchronić się "
                                                "przed spamerami, niechcianymi futrzakami, oraz największymi trollami.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("Wyłączyłem globalne bany dla tej grupy. Globalne bany nie będą więcej dotykać "
                                                "twoich futrzaków. Będziesz za to bardziej podatny na spammerów oraz "
                                                "trollów!")
    else:
        update.effective_message.reply_text("Daj mi jakiś argument żeby zmienić ustawienie! on/off, yes/no!\n\n"
                                            "Twoje obecne ustawienie: {}\n"
                                            "Jeśli True, jakiekolwiek wykonane globalne bany będą też aktywne na twojej grupie. "
                                            "Jeśli False, to one nie będą, zostawiając ciebie na prawdopodobną łaskę "
                                            "spammerów.".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 8
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("Bu grupta gbanları etkinleştirdim. Bu sizi spam gönderenlerden "
                                                "hoş olmayan karakterlerden ve en büyük trollerden korumaya yardımcı olacak")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text("Bu grupta gbaları devre dışı bıraktım. GBanlar, kullanıcılarınızı etkilemez "
                                                "Herhangi bir troll veya spam göndericiden daha az korunacaksınız "
                                                "Dikkatli ol!")
    else:
        update.effective_message.reply_text("Etkinleştirmek için on/yes veya devre dışı bırakmak için off/no kullanabilirsin\n\n"
                                            "Şuanki ayar: {}\n"
                                            "Açık olduğunda, Tüm gbanlar grubunuza da etki eder. "
                                            "Kapalı olduğunda sizi spammerlerin muhtemel merhametine "
                                            "bırakacağım.".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 9
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "이 그룹에서 GBAN을 활성화했어요. 스팸 발송자, 불친절한 사람들 "
                "등에서부터 자신을 보호할 수 있어요.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "이 그룹에서 글로벌 밴을 비활성화했어요. GBAN이 더 이상 사용자에게 영향을 주지 "
                "않아요. 스팸 발송자, 불친절한 사람들로부터 보호받지 못할 거예요!")
    else:
        update.effective_message.reply_text(
            "설정을 주기 위해서 on/off, yes/no!라고 해주세요.\n\n"
            "현재는 다음으로 설정되어 있어요: {}\n"
            "True 상대이면, 그룹에서 GBAN을 사용하실 수 있어요. "
            "False 상대이면, GBAN을 사용하실 수 없고, 스팸 발송자로부터 메시지를 "
            "계속 받을 거예요!".format(sql.does_chat_gban(update.effective_chat.id)))
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "Ho abilitato gban per questo gruppo. Ti aiuterò a proteggerti dagli "
                "spammers, personalità antipatiche, e i più grandi trolls.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "Ho disabilitato gban per questo gruppo. Attenzione: "
                "sei meno protetto dai trolls e dagli spammers!")
    else:
        update.effective_message.reply_text(
            "Devi specificare un argomento! on/off, yes/no!\n\n"
            "Le impostazioni attuali sono: {}\n"
            "quando True, ogni gban che avviene, avverrà anche in questo gruppo. "
            "quando False, non verrai protetto da trolls e "
            "spammers.".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 11
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've enabled gbans in this group. This will help protect you "
                "from spammers, unsavoury characters, and the biggest trolls.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've disabled gbans in this group. GBans wont affect your users "
                "anymore. You'll be less protected from any trolls and spammers "
                "though!")
    else:
        update.effective_message.reply_text(
            "Nipe hoja chache kuchagua mpangilio! on/off, yes/no!\n\n"
            "Huu ni mpangilio wako wa sasa: {}\n"
            "Ikiwa ni kweli, chochote kinachotokea gbans Na hiyo hufanyika katika kikundi chako."
            "Ikiwa ni makosa, hawatakubali na watakuokoa huruma ya spammers."
            "spammers.".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 12
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've enabled gbans in this group. This will help protect you "
                "from spammers, unsavoury characters, and the biggest trolls.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've disabled gbans in this group. GBans wont affect your users "
                "anymore. You'll be less protected from any trolls and spammers "
                "though!")
    else:
        update.effective_message.reply_text(
            "ഒരു ക്രമീകരണം തിരഞ്ഞെടുക്കാൻ എനിക്ക് കുറച്ച് ആർഗ്യുമെന്റുകൾ നൽകുക! on/off, yes/no!\n\n"
            "നിങ്ങളുടെ നിലവിലെ ക്രമീകരണം ഇതാണ്: {}\n"
            "ശരിയാണെങ്കിൽ, സംഭവിക്കുന്ന ഏതൊരു gbans ഉം നിങ്ങളുടെ ഗ്രൂപ്പിൽ സംഭവിക്കും."
            "തെറ്റാണെങ്കിൽ‌, അവർ‌ സമ്മതിക്കില്ല, സ്പാമർ‌മാരുടെ കാരുണ്യത്തിൽ‌ നിങ്ങളെ ഒഴിവാക്കും."
            "spammers.".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 13
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've enabled gbans in this group. This will help protect you "
                "from spammers, unsavoury characters, and the biggest trolls.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "لقد تعطيل الحظر في هذه المجموعة. حظر لن يؤثر على المستخدمين"
                "بعد الآن. ستكون أقل حماية من أي متصيد او سبامرز"
                "على الرغم!")
    else:
        update.effective_message.reply_text(
            "أعطني بعض الحجج لاختيار الإعداد! on/off, yes/no!\n\n"
            "الإعداد الحالي الخاص بك هو: {}\n"
            "عند صحيح، سيحدث أي رجال البيئة التي تحدث أيضا في مجموعتك."
            "عندما خطأ، لن يغادرونك في الرحمة الممكنة"
            "spammers.".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 14
0
def gbanstat(update: Update, context: CallbackContext):
    args = context.args
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                get_string("gbans", "GBANS_ON",
                           lang.get_lang(
                               update.effective_chat.id)))  # GBANS_ON
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                get_string("gbans", "GBANS_OFF",
                           lang.get_lang(
                               update.effective_chat.id)))  # GBANS_OFF
    else:
        update.effective_message.reply_text(
            get_string("gbans", "GBAN_NO_ARGS",
                       lang.get_lang(update.effective_chat.id)).format(
                           sql.does_chat_gban(
                               update.effective_chat.id)))  # GBAN_NO_ARGS
Ejemplo n.º 15
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["ac", "evet"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "Bu grupta global yasakları etkinleştirdim. Bu seni korumaya yardımcı olacak "
                "Bu seni korumaya yardımcı olacak. Özellikle spam mesajcılara ve trollere karşı"
            )
        elif args[0].lower() in ["kapat", "hayir"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "Bu grupta global yasakları devre dışı bıraktım.  "
                "Global yasaklar artık kullanıcılarınızı etkilemeyecek "
                "Trollerden ve spam gönderenlerden daha az korunacaksınız!")
    else:
        update.effective_message.reply_text(
            "Bir ayar seçmek için bana bazı argümanlar ver! ac/evet, kapat/hayir!\n\n"
            "Mevcut ayarınız: {}\n"
            "True olduğunda, bir global yasak grubunuzda aktif hale gelecek, korumam altında olacaksınız. "
            "Yanlış olduğunda, gruplarda yazılan mesajlar, spam gönderenlerin insafına "
            "kalmış.".format(sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 16
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've enabled gbans in this group. This will help protect you "
                "from spammers, unsavoury characters, and the biggest trolls.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "Bu gruptaki gbanları etkisiz bıraktım. GBans wont kullanıcılarınızı etkiler "
                "artık. Herhangi bir troller ve spam daha az korunacak "
                "ama!")
    else:
        update.effective_message.reply_text(
            "Bana bir ayar seçmek için bazı argümanlar verin! a/s. evet/hayır!\n\n"
            "Geçerli ayarınız: {}\n"
            "Doğru olduğunda, grubunuzun içinde olan herhangi bir gbans da olacaktır."
            "Yanlış olduğunda, seni olası insafına bırakmazlar."
            "spam gönderenler.".format(
                sql.does_chat_gban(update.effective_chat.id)))
Ejemplo n.º 17
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "Bu grupta gbanları etkinleştirdim. Bu sizi korumaya yardımcı olacak "
                "spam gönderenlerden, hoş olmayan karakterlerden ve en büyük trollerden."
            )
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "Bu grupta gbaları devre dışı bıraktım. GBanlar, kullanıcılarınızı etkilemez "
                "Herhangi bir trol ve spam göndericiden daha az korunacaksınız "
                "Dikkatli ol!")
    else:
        update.effective_message.reply_text(
            "Bir ayar seçmek için bazı argümanlar ver! on/off, yes/no!\n\n"
            "Şuanki ayar: {}\n"
            "True olduğunda, gerçekleşen tüm gbanlar da grubunuzda gerçekleşir. "
            "Yanlış olduğunda, sizi spam göndericilerin muhtemel merhametine "
            "bırakacağım.".format(sql.does_chat_gban(
                update.effective_chat.id)))
Ejemplo n.º 18
0
def gbanstat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "Saya telah mengaktifkan gbans di grup ini. Ini akan membantu melindungi Anda "
                "dari spammer, karakter yang tidak menyenangkan, dan troll terbesar."
            )
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gbans(update.effective_chat.id)
            update.effective_message.reply_text(
                "Saya telah menonaktifkan gban di grup ini. GBans tidak akan mempengaruhi pengguna Anda "
                "lagi. Anda akan kurang terlindungi dari troll dan spammer "
                "bagaimanapun juga!")
    else:
        update.effective_message.reply_text(
            "Beri saya beberapa argumen untuk memilih pengaturan! on/off, yes/no!\n\n"
            "Pengaturan Anda saat ini adalah: {}\n"
            "Saat True, semua gbans yang terjadi juga akan terjadi di grup Anda. "
            "Ketika Salah, mereka tidak akan melakukannya, meninggalkan Anda dengan kemungkinan belas kasihan "
            "si pengirim spam.".format(
                sql.does_chat_gban(update.effective_chat.id)))