PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: D-J Valhala on 15 December, 2003, 10:58:25

Title: wordKickr BoT
Post by: D-J Valhala on 15 December, 2003, 10:58:25
can someone post me a KickerBoT if someone write a word that in the database he automaticly kick out of the hub?
 :D  
Title:
Post by: BlazeXxX on 15 December, 2003, 16:56:35
I think i got that bot! I will post it ASAP. Meanwhile try searching for anti advertising or Lucifier bot.. It does the same job ;)
Title:
Post by: BlazeXxX on 16 December, 2003, 13:03:43
botname = "CensorBot"
trigs = { ["fuck"]=1,["bitch"]=2,["depm"]=3,["servemp3.com"]=4,["ip.com"]=4,
}


function DataArrival(user, data)
if (not user.bOperator) then
if (( strsub(data, 1, 1) == "<" ) or ( strsub(data, 1, 4) == "$To:" )) then
for key,a in trigs do
if( strfind( strlower(data), key) ) then
SendToAll( botname, user.sName.." has been kicked because of Offensive Language / Advertising. )
user:Disconnect()
end
end
end
end
end
Title:
Post by: D-J Valhala on 16 December, 2003, 13:04:33
whan you post me the scrop m8 ?
  :D
Title:
Post by: BlazeXxX on 16 December, 2003, 13:06:38
few seconds ago m8 wen i saw ur nick in the user list  :P