old_contents: # -*- coding: utf-8 -*-
  from line import LineClient
  from os import environ
  import re
  
  try:
      LINE_USER_TOKEN    = environ.get("LINE_USER_TOKEN", "")
      LINE_COMPUTER_NAME = environ.get("LINE_COMPUTER_NAME", "LineBotWorker")
      client = LineClient(authToken=LINE_USER_TOKEN, com_name=LINE_USER_TOKEN)
      client.profile.sendMessage("Bot started..")
  except:
      print("Login Failed")
      exit()
  
  while True:
      for group in list(set(client.groups) | set(client.contacts)):
          chat = client.getMessageBox(group.id)
          if not chat.unreadCount:
              continue
          messages = client.getRecentMessages(chat, chat.unreadCount)
          messages.reverse()
          for message in messages:
              if client.profile == message.sender:
                  continue
              elif re.match(r'(เล้ง|เลิ้ง|เลี้ยง)', message.text):
                  chat.sendMessage("ว่าไงครัซซ")
  
  
new_contents: # -*- coding: utf-8 -*-
  import os; os.sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
  from line import LineClient
  from os import environ
  import re
  
  try:
      LINE_USER_TOKEN    = environ.get("LINE_USER_TOKEN", "")
      LINE_COMPUTER_NAME = environ.get("LINE_COMPUTER_NAME", "LineBotWorker")
      client = LineClient(authToken=LINE_USER_TOKEN, com_name=LINE_COMPUTER_NAME)
  except Exception as e:
      print "Login Failed\n", e.message
      exit()
  
  while True:
      group = client.getGroupByName("LineBotWorker")
      chat = client.getMessageBox(group.id)
      messages = client.getRecentMessages(chat, chat.unreadCount)
      messages.reverse()
      for message in messages:
          if re.match(r'(เล้ง|เลิ้ง|เลี้ยง)', message.text):
              group.sendMessage("ว่าไงครัซซ")
              break
  
  
subject: change some code for test