SHARE
TWEET

filter.lua

a guest Aug 18th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. input = fs.open("chatlog", "r")
  2. output = fs.open("filtered", "w")
  3.  
  4. text = input.readLine()
  5.  
  6. while text do
  7.     if string.find(text, "KingCol13:") or string.find(text, "Brotbaer:") then
  8.         print(text)
  9.         output.write(text .. "/n")
  10.     end
  11.     text = input.readLine()
  12. end
  13.  
  14. input.close()
  15. output.close()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top