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)))
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)))
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)))
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)))