AuthorMessage
Meka][Meka
Unstopable
Posts: 700

a script written by plop i made a change to work with hexhub... tis fun, used to use with px.. now i can use with hexhub too...
Code:

--// a bit of comedy, a script originally written by plop ( www.plop.nl ), slight mod to work with HexHub ( Meka][Meka )
--// Requires Meka][Meka Lua Plugin
FilterMain = 1
---- the words to be replaced and by what.
tBadWords = {
   ["http"] = "http://www.meka-meka.com/ - this site sucks tho: http",
   --["http"] = "http://www.meka-meka.com/",
   ["lmfao"] = "'laughing my fucking arse off'",
   ["last"]="final",
   ["chance"]="fantasy",
   ["fuck"]= "spit",
   ["help"]="kick",
   ["fast"]="slow",
   ["faster"]="slower",
   ["running"]="walking",
   ["want"]="don't want",
   ["spam"]="meat",
   ["spamming"]="meat-eating",
   ["spammer"]="meat-eater",
   ["kicking"]="raping",
   ["kick"]="kickz0r",
   ["own"]="pwnz0r",
   ["sweet"]="evil",
   ["cool"]= "crap",
   ["kewl"]= "craaap",
   ["morning"]= "night",
   ["bitch"] = "babe",
   ["guys"]="gays",
   ["winamp"]="gayamp",
   ["some"]="loads of",
   ["fun"]="shit",
   ["2"]="1",
   ["3"]="1",
   ["4"]="1",
   ["5"]="1",
   ["6"]="1",
   ["7"]="1",
   ["8"]="1",
   ["9"]="1",
   ["0"]="1",
   ["b"]="bastard",
   ["c"]="cunt",
   ["d"]="dick head",
   ["f"]="fucker",
   ["r"]="retard",
   ["s"]="stupid",
   ["chat"]="talk",
   ["about"]="bout",
   ["taste"]="delicious",
   ["girl"]="man",
   ["the"]="teh",
   ["im"]="i am",
   ["dont"]="do",
   ["playing"]="deleting",
   ["have"] = "am",
   ["down"] = "up",
   ["download"]= "upload",
   ["fuck you"] = "spit on you",
   ["motherfucker"] = "mom lover",
   ["fuck you all"] = "spit on you all",
   ["fucking"] = "spitting",
   ["fucked"] = "squirted",
   ["pussy"] = "cat",
   ["suck"] = "eat",
   ["sucks"] = "eats",
   ["suckz"] = "eats",
   ["blow"] = "'god of wind'",
   ["fucker"] = "spitter",
   ["fuckers"] = "sweethearts",
   ["shit"] = "chocolate flavour",
   ["ass"] = "perfect place",
   ["mother fucker"] = "mum lover",
   ["cock sucker"] = "'what i love todo'",
   ["cocksucking"] = "'what i love todo'",
   ["stupid fucker"] = "clever dude",
   ["I hate this hub"] = "i love this hub",
   ["this hub sucks"] = "this hub rules",
   ["this hub blows"] = "this hub rules",
   ["suck my dick"] = "eat my shorts",
   ["stupid whore"] = "clever sweetie",
   ["fagget"] = "smartass",
   ["bastard"] = "magic",
   ["arse"] = "perfect place",
   ["puff"] = "magic dragon",
   ["wanker"] = "bob the builder",
   ["german"] = "an arsehole",
   ["germans"] = "arseholes",
   ["Tyler"] = "my god",
   ["tyler"] = "my god",
   ["dick"] = "plate of chips",
   ["dickhead"] = "plate of chips head",
   ["twat"] = "fish",
   ["cunt"] = "yum",
   ["cock"] = "yuch",
   ["thx"] = "thank you",
   ["u"] = "you",
   ["wb"] = "welcome back",
   ["ty"] = "thank you",
   ["tnx"] = "thank you",
   ["brb"] = "back in a jiff",
   ["bbl"] = "time to make children, back later",
   ["ltr"] = "bye bye",
   ["l8rs"] = "bye bye",
   ["l8r"] = "bye bye",
   ["bye"] = "bye bye",
   ["cya"] = "bye bye",
   ["cyas"] = "bye bye",
   ["good"] = "good",
   ["bad"] = "good",
   ["cenzored"] = "crap",
   ["censored"] = "crap",
   ["rtfm"] = "read the fucking manual",
   ["google"] = "meka-meka",
   ["Meka"] = "my god",
   ["meka"] = "my god",
   ["good"] = "bad",
   ["ashu"] = "goddess",
   ["luv"] = "hate",
   ["lyrics"] = "sawed off shotgun",
   ["shag"]= "sawed off shotgun",
   ["script"]= "sawed off shotgun",
   ["trance"] = "hardcore",
   ["big"] = "little",
   ["little"] = "massive",
   ["prog"] = "program",
   ["to"] = "2",
   ["two"] = "one",
   ["three"] = "one",
   ["four"] = "one",
   ["five"] = "one",
   ["six"] = "one",
   ["seven"] = "one",
   ["eight"] = "one",
   ["nine"] = "one",
   ["zero"] = "one",
   ["ptokax"] = "ynhub",
   ["px"] = "ynhub",
   ["would"] = "wud",
   ["bigger"] = "smaller",
   ["k"] = "okidokie",
   ["ok"] = "okidokie",
   ["okey"] = "okidokie",
   ["okay"] = "okidokie",
   ["nipple"] = "cherry",
   ["nipples"] = "cherrys",
   ["stiff"] = "soft",
   ["hard"] = "soft",
   ["a pass"] = "your ass",
   ["app"] = "sausauges",
   ["lmao"] = "'laughing my arse off'",
   ["pmsl"] = ":-O ive pissed my self with laughing",
}
---- the words to be replaced and by what (function mode).
tBadFuncs = {
   -- replace lol with a random amount of o's
   ["lol"] = function()
      local i = math.random(1,20)
      return "L"..(string.rep("o", i)).."L"
   end,
   ["hehe"] = function()
      local i = math.random(1,20)
      return "heh"..(string.rep("e", i))
   end
}
-- prefixes table, allowed for me and let commands bypase the replacer
tPre = { ["+"] = 1, ["!"] = 1, ["/"] = 1, ["-"]=1 }
function Main()
   local num = string.gsub(os.date(), "%D", "")
   math.randomseed(tonumber(num))
end
function CheckWord(word)
   local wordl = string.lower(word)
    if tBadWords[wordl] then
         return tBadWords[wordl]
      elseif tBadFuncs[wordl] then
         return tBadFuncs[wordl]()
   else
         return word
   end
end
function ChatArrival(user, data)
   if FilterMain then
         local data,c = string.gsub(data , "(%w+)", function(word)
                              return CheckWord(word)
                           end
      )
         local s,e,pre, cmd = string.find(data, "^%s*(%W)(%S+)")
         if c ~= 0 then
               if pre and tPre[pre] then
                  if cmd == "me" then
                        SendToAll("* "..user.sName.." "..string.sub(data, 5, string.len(data)))
                        return 1
                  else
                        return 0
                  end
               else
                  SendToAll(user.sName, data)
                  return 1
               end
         end
      end
end