def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message chat = update.effective_chat if not user: # ignore channels return res = sql.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) delmsg = update.effective_message.reply_text( chosen_option.format(firstname)) cleartime = get_clearcmd(chat.id, "afk") if cleartime: context.dispatcher.run_async(delete, delmsg, cleartime.time) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: # dont say msg return firstname = update.effective_user.first_name try: options = [ "{} Telah Kembali!", "Ada Yang kangen {}?", "{} sekarang waktunya nimbrung!", "{} disini menantimu:)!", "{} Telah ONLINE!", "{} welcome back ibab !", "{} tetap semangat ", "Darimana lu {}?\nAbis apa hayo ?", "Ramein grupnya yuk!", ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} wah pasti abis ngentot!', '{} is back!', '{} ngentot terus gblk!', '{} bagi pap tt om!', '{} si anjing balik lagi!', '{} si goblok sok sibuk!', 'Welcome back anak kampang! {}', 'kemana si {}?\nPasti abis parming pap tt!' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.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) update.effective_message.reply_text(chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: # dont say msg return firstname = update.effective_user.first_name try: options = [ "{} pasti dari anon, cari pap tt!", "{} gausa balik pantek!", "{} ga penting lu pantek gausa balik!", "{} dih pasti abis bucin!", "{} Anak Telaso balik anjing!", "{} pasti abis ngejamet si pantek!", "WB jamet pantek! {}", "Dari mana {}?\npasti abis ghosting!", ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} ᴅᴀʀɪ ᴍᴀɴᴀ ᴀᴊᴀ ᴍᴇᴛ? ʙᴜᴀᴛ sʟᴏᴡᴍᴏ ᴍᴜʟᴜ ɴʏᴇᴛ!', '{} ʙᴀʟɪᴋ ʟᴀɢɪ ᴍᴇᴛ!', 'ᴋɪᴡ {} ᴘᴀsᴛɪ ᴀʙɪs ɴɢᴇsʟᴏᴡᴍᴏ ʏᴀ?', '{} sɪ ᴊᴀᴍᴇᴛ ʙᴀʀᴜ ʙᴀʟɪᴋ, ᴍᴀɴᴀ ᴠɪᴅᴇᴏɴʏᴀ ᴀᴊɢɢ', '{} sɪ ᴊᴀᴍᴇᴛ ʙᴀʟɪᴋ ʟᴀɢɪ!', '{} sɪ ᴊᴀᴍᴇᴛ sᴏᴋ ᴋᴇʀᴇɴ sᴏᴋ sɪʙᴜᴋ ᴀᴊɢ', 'ᴡᴇʟᴄᴏᴍᴇ ʙᴀᴄᴋ ᴊᴀᴍᴇᴛ! {}', 'ᴅᴀʀɪᴍᴀɴᴀ ᴀᴊᴀ ʟᴜ {}?\nᴘᴀsᴛɪ ᴀʙɪs ᴅᴀʀɪ sᴛᴀᴅɪᴏɴ ʙᴜᴀᴛ sʟᴏᴡᴍᴏ!' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} darimana aja? so sibuk anjing!', '{} balik lagi anjing!', 'kiw {} pasti abis parming ya?', '{} babu gua baru balik, bagi hasil parmingan ajg', '{} si anjing balik lagi!', '{} si goblok sok sibuk!', 'Welcome back anak haram! {}', 'kemana aja lu {}?\nPasti abis parming!' ] chosen_option = random.choice(options) update.effective_message.reply_text(chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} welcome back babu', '{} is back!', '{} beban ortu balik lagi nih', ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def __gdpr__(user_id): sql.rm_afk(user_id)