def no_longer_afk(update, context): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = afk_db.rm_afk(user.id) if res: if message.new_chat_members: # dont say msg return firstname = update.effective_user.first_name try: options = [ "dih si {} bangsat balik lagi!", "hai {} pepek welback!", "si {} pengangguran sok sibuk balik!", "wb {} anak anjeeng!", "{} kembali siap memberantas sange online!", "{} gausa balik lagi gapenting!", "hmm balik paling abis nyari pap tt¿ {}", "Dimana si bangsat {}?\nAjg ajg disini!", ] chosen_option = random.choice(options) unafk = update.effective_message.reply_text( chosen_option.format(firstname)) sleep(900) unafk.delete() except BaseException: return
def no_longer_afk(update, context): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = afk_db.rm_afk(user.id) if res: if message.new_chat_members: # dont say msg return firstname = update.effective_user.first_name try: options = [ "{} pasti abis dighosting!", "{} alo kang ghosting!", "{} kang ghosting balik anjeng!", "{} balik kalo lagi galau aja anjeng!", "{} kembali dari dunia perbucinan!", "{} gausa balik lagi kalo mau ghosting!", "hmm balik paling abis ghosting! {}", "Dimana {}?\nDi pelukan orang lain!", ] chosen_option = random.choice(options) unafk = update.effective_message.reply_text( chosen_option.format(firstname)) sleep(10) unafk.delete() except BaseException: return
def no_longer_afk(update, context): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = afk_db.rm_afk(user.id) if res: if message.new_chat_members: # dont say msg return firstname = update.effective_user.first_name try: options = [ "{} pasti abis dighosting!", "{} hai kang ghosting, welcome back!", "{} jamet tukang ghosting balik!", "{} gausah balik kalo mau ghosting!", "{} kembali siap ghosting orang!", "{} anjeng gausa balik kalo nyakitin!", "hmm pasti {} abis ghosting", "Dimana {}?\nLagi parming!", ] chosen_option = random.choice(options) unafk = update.effective_message.reply_text( chosen_option.format(firstname) ) sleep(10) unafk.delete() except BaseException: return
def no_longer_afk(update, context): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = afk_db.rm_afk(user.id) if res: if message.new_chat_members: # dont say msg return firstname = update.effective_user.first_name try: options = [ "{} is here!", "{} is back!", "{} is now in the chat!", "{} is awake!", "{} is back online!", "{} is finally here!", "Welcome back! {}", "Where is {}?\nIn the chat!", ] chosen_option = random.choice(options) unafk = update.effective_message.reply_text( chosen_option.format(firstname)) sleep(10) unafk.delete() except BaseException: return
def __gdpr__(user_id): afk_db.rm_afk(user_id)