def command_status(m): cid = m.chat.id if Log.listUsersCount() > 0: bot.send_message(cid, "Site Open") else: bot.send_message(cid, "Site Closed")