def check_afk(bot, update, user_id, fst_name): chat = update.effective_chat # type: Optional[Chat] if sql.is_afk(user_id): user = sql.check_afk_status(user_id) if not user.reason: res = tld(chat.id, f"{fst_name} lagi cabut sebentar!") else: res = tld(chat.id, f"{fst_name} lagi cabut dulu!\nkatanya sih : {user.reason}") update.effective_message.reply_text(res)
def check_afk(bot, update, user_id, fst_name): chat = update.effective_chat # type: Optional[Chat] if sql.is_afk(user_id): user = sql.check_afk_status(user_id) if not user.reason: res = tld(chat.id, f"{fst_name} is AFK!") else: res = tld(chat.id, f"{fst_name} is AFK! says its because of:\n{user.reason}") update.effective_message.reply_text(res)
def check_afk(bot, update, user_id, fst_name): chat = update.effective_chat # type: Optional[Chat] if sql.is_afk(user_id): user = sql.check_afk_status(user_id) if not user.reason: res = tld(chat.id, f"{fst_name} is Away From Keyboard![AFK!]") else: res = tld(chat.id, f"{fst_name} is now Away From Keyboard[Afk]! says its because of this following reason:\n{user.reason}") update.effective_message.reply_text(res)
def check_afk(bot, update, user_id, fst_name): chat = update.effective_chat # type: Optional[Chat] if sql.is_afk(user_id): user = sql.check_afk_status(user_id) if not user.reason: res = tld(chat.id, f"{fst_name} sedang afk!") else: res = tld(chat.id, f"{fst_name} AFK ❌❌❌! Alasannya📝📝📝:\n{user.reason}") update.effective_message.reply_text(res)
def check_afk(bot, update, user_id, fst_name): chat = update.effective_chat # type: Optional[Chat] if sql.is_afk(user_id): user = sql.check_afk_status(user_id) if not user.reason: res = tld(chat.id, f"{fst_name} dia lagi afk") else: res = tld(chat.id, f"{fst_name} dia afk, katanya si mau \n{user.reason}") update.effective_message.reply_text(res)
def check_afk(bot, update, user_id, fst_name): chat = update.effective_chat # type: Optional[Chat] if sql.is_afk(user_id): user = sql.check_afk_status(user_id) if not user.reason: res = tld(chat.id, f"#BUSY\n{fst_name} 𝗦𝗲𝗱𝗮𝗻𝗴 𝘼𝙁𝙆❗") else: res = tld( chat.id, f"#BUSY\n{fst_name} 𝗦𝗲𝗱𝗮𝗻𝗴 𝘼𝙁𝙆❗\n**Reason :** {user.reason}") update.effective_message.reply_text(res)
def check_afk(bot, update, user_id, fst_name): chat = update.effective_chat # type: Optional[Chat] if sql.is_afk(user_id): user = sql.check_afk_status(user_id) if not user.reason: res = tld(chat.id, f"{fst_name} ркП ркЖрк╡рлЗ рк╣ркоркгрк╛ркВтЬЛЁЯП╗!") else: res = tld( chat.id, f"{fst_name} ркП ркЖрк╡рлЗ рк╣ркоркгрк╛ркВ ркХрлЗрко ркХрлЗ:\n{user.reason}" ) update.effective_message.reply_text(res)
def check_afk(bot, update, user_id, fst_name): chat = update.effective_chat # type: Optional[Chat] if sql.is_afk(user_id): user = sql.check_afk_status(user_id) elapsed_time = time.time() - start_time final = time.strftime("%Hh: %Mm: %Ss", time.gmtime(elapsed_time)) if not user.reason: res = tld(chat.id, f"{fst_name} is AFK !\n\nLast seen {final} ago") else: res = tld( chat.id, f"{fst_name} is AFK !\n\nReason: {user.reason}\n\nLast seen {final} ago" ) update.effective_message.reply_text(res)
def check_afk(bot, update, user_id, fst_name, userc_id): chat = update.effective_chat if sql.is_afk(user_id): user = sql.check_afk_status(user_id) if not user.reason: if int(userc_id) == int(user_id): return res = tld(chat.id, "status_afk_noreason").format(fst_name) update.effective_message.reply_text(res) else: if int(userc_id) == int(user_id): return res = tld(chat.id, "status_afk_reason").format(fst_name, user.reason) update.effective_message.reply_text(res)