コード例 #1
0
def gmutestat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text("Qlobal susdurmuanı bu qrupda aktiv elədim.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text("Qlobal susdurmanı bu qrupda deaktiv elədim.")
    else:
        update.effective_message.reply_text("Mənə arqument verməlisən! on/off, yes/no!\n\n"
                                            "Sənin hazırki seçimin: {}\n"
                                            "Aktiv olduqda qrupda qlobal susdurma işləyəcək. "
                                            "Deaktiv olduqda isə əksinə.".format(sql.does_chat_gmute(update.effective_chat.id)))
コード例 #2
0
ファイル: global_mutes.py プロジェクト: mfazin/Marie-Arabic
def gmutestat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text("   Games   .     "
                                                "      .")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text("   Gotsung   . Gathes Wont   "
                                                " .       !")
    else:
        update.effective_message.reply_text("      !on/off, yes/no!\n\n"
                                            "    : {}\n"
                                            "        ."
                                            "      "
                                            "spammers.".format(sql.does_chat_gmute(update.effective_chat.id)))
コード例 #3
0
ファイル: global_mutes.py プロジェクト: w1858810/saraakbot
def gmutestat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text("I've enabled gmutes in this group. This will help protect you "
                                                "from spammers, unsavoury characters, and Anirudh.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text("I've disabled gmutes in this group. GMutes wont affect your users "
                                                "anymore. You'll be less protected from Anirudh 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 gmutes 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_gmute(update.effective_chat.id)))
コード例 #4
0
def gmutestat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text("මම මෙම කණ්ඩායමේ gmutes සක්‍රීය කර ඇත. මෙය ඔබව ආරක්ෂා කිරීමට උපකාරී වේ "
                                                "අයාචිත තැපැල්, අප්‍රසන්න චරිත සහ අනිරුද් වෙතින්.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text("මම මෙම කණ්ඩායමේ gmutes අක්‍රීය කර ඇත. GMutes ඔබේ පරිශීලකයින්ට බලපාන්නේ නැත"
                                                "තවදුරටත්. ඔබට අඩු ආරක්ෂාවක් ලැබෙනු ඇත!")
    else:
        update.effective_message.reply_text("පසුබිමක් තෝරා ගැනීමට මට තර්ක කිහිපයක් දෙන්න! on/off, yes/no!\n\n"
                                            "ඔබගේ වර්තමාන සැකසුම: {}\n"
                                            "සත්‍ය වූ විට, සිදුවන ඕනෑම විකාරයක් ඔබගේ කණ්ඩායම තුළ ද සිදුවනු ඇත. "
                                            "අසත්‍ය වූ විට, ඔවුන් එසේ නොකරනු ඇත"
                                            "spammers.".format(sql.does_chat_gmute(update.effective_chat.id)))
コード例 #5
0
def gmutestat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've enabled gmutes in this group. This will help protect you "
                "from spammers, unsavoury characters, and Anirudh.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've disabled gmutes in this group. GMutes wont affect your users "
                "anymore. You'll be less protected from Anirudh though!")
    else:
        update.effective_message.reply_text(
            "ഒരു ക്രമീകരണം തിരഞ്ഞെടുക്കാൻ എനിക്ക് കുറച്ച് ആർഗ്യുമെന്റുകൾ നൽകുക! on/off, yes/no!\n\n"
            "നിങ്ങളുടെ നിലവിലെ ക്രമീകരണം ഇതാണ്: {}\n"
            "ശരിയാണെങ്കിൽ, സംഭവിക്കുന്ന ഏത് gmutes ഉം നിങ്ങളുടെ ഗ്രൂപ്പിൽ സംഭവിക്കും. "
            "തെറ്റാണെങ്കിൽ‌, അവർ‌ സമ്മതിക്കില്ല, സ്പാമർ‌മാരുടെ കാരുണ്യത്തിൽ‌ നിങ്ങളെ ഒഴിവാക്കും."
            "spammers.".format(sql.does_chat_gmute(update.effective_chat.id)))
コード例 #6
0
ファイル: global_mutes.py プロジェクト: Jihudumie/bahalia
def gmutestat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've enabled gmutes in this group. This will help protect you "
                "from spammers, unsavoury characters, and Anirudh.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've disabled gmutes in this group. GMutes wont affect your users "
                "anymore. You'll be less protected from Anirudh 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 gmutes Na hiyo hufanyika katika kikundi chako. "
            "Ikiwa ni makosa, hawatakubali na watakuokoa huruma ya spammers."
            "spammers.".format(sql.does_chat_gmute(update.effective_chat.id)))
コード例 #7
0
def gmutestat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've enabled gmutes in this group. This will help protect you "
                "from spammers, unsavoury characters, and Anirudh.")
        elif args[0].lower() in ["off", "no"]:
            sql.disable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text(
                "I've disabled gmutes in this group. GMutes wont affect your users "
                "anymore. You'll be less protected from Anirudh though!")
    else:
        update.effective_message.reply_text(
            "Give me a few arguments to choose a setting! on/off, yes/no!\n\n"
            "This is your current setting: {}\n"
            "If so, which happens gmutes And will happen in your group. "
            "If wrong, they will not agree, You will be spared at the mercy of spammers."
            "spammers.".format(sql.does_chat_gmute(update.effective_chat.id)))
コード例 #8
0
def gmutestat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gmutes(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_gmutes(update.effective_chat.id)
            update.effective_message.reply_text(
                "Wyłączyłem globalne wyciszenia 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 wyciszenia 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)))
コード例 #9
0
def gmutestat(bot: Bot, update: Update, args: List[str]):
    if len(args) > 0:
        if args[0].lower() in ["on", "yes"]:
            sql.enable_gmutes(update.effective_chat.id)
            update.effective_message.reply_text(
                "Bu grupta küresel susturmaları 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_gmutes(update.effective_chat.id)
            update.effective_message.reply_text(
                "Bu grupta gbaları devre dışı bıraktım. Küresel susturmalar, kullanıcılarınızı etkilemez "
                "Herhangi bir troll veya spam göndericiden daha az korunacaksınız!"
            )
    else:
        update.effective_message.reply_text(
            "Etkinleştirmek için on/yes veya devre dışı bırakmak için off/no kullanabilirsin\n\n"
            "Şu anki ayar: {}\n"
            "Açık olduğunda, Tüm küreseler susturmalar grubunuza da etki eder. "
            "Kapalı olduğunda sizi spammerlerin muhtemel merhametine "
            "bırakacağım.".format(sql.does_chat_gmute(
                update.effective_chat.id)))