Shadow19

Tickle Reply filter for DPE

Aug 18th, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.90 KB | None | 0 0
  1. if direction == "<"
  2.     if decoy["done"] and data
  3.         if data.tag?("z") and data.getAttr("t") and data.getAttr("u")
  4.             if data.getAttr("t") == "/l"
  5.                 Thread.main["tickle_r_t"].kill rescue print("")
  6.                 Thread.main["tickle_r_t"] = Thread.new(decoy, data) do |decoy, data|
  7.                     sleep(rand(3.0..5.0))
  8.                     decoy[">"].print(
  9.                         packet(
  10.                             {
  11.                                 "z"=>{
  12.                                     "d"=>data.getAttr("u")[/(.+?[^\D]{1,})/],
  13.                                     "u"=>decoy["uid"],
  14.                                     "t"=>"You tickled me?!",
  15.                                     "s"=>"2"
  16.                                 }
  17.                             }
  18.                         )
  19.                     )
  20.                 end
  21.             end
  22.         end
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment