PM Word check..
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

PM Word check..

Started by DoD_Owner, 21 April, 2004, 09:07:43

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DoD_Owner

Hey guys.... well I have this script, and I would like 1 feature more written into it... I want it to type the sentence/word that the users got kicked for... would be nice to know ;-) I hope it's possible.

------------------------

botname = "Daemonicus"
trigs = { ["dreamer"]=1,["d r e a m e r"]=2,["fuck shadow"]=3,
["kingsofchaos"]=4,["fuck dod"]=5,["seven-private"]=6,["s e v e n - p r i v a t e"]=7,["cornerhouse"]=8,["c o r n e r h o u s e"]=9,["lir.dk"]=10, ["corner house"]=11,["joine ch"]=12,
["Drop Inn"]=13,["dropinn"]=14,["d r o p i n n"]=15,["217.215.12.141"]=16,["dreams.gotdns.org:412"]=17,["bigshare"]=18,["ronna.no-ip.com:412"]=19,["dragonslayer-gbg.no-ip.org"]=20,["ChatBaren.dyndns.dk:22221"]=21 }


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
SendPmToOps( botname, user.sName.." has been kicked because of Offensive Language / Advertising." )
user:Disconnect()
end
end
end
end
end


----------------

Thx in advance.

//DoD_Owner...
Owner of [??] Dimension of Deamons Private.

A nice private hub ... 100 GB min. share... wanna get regged, pm me.. ;)  (200+ users, 60TB+ share)

nErBoS

Hi,

Try this one...

botname = "Daemonicus" 

trigs = { 
	["dreamer"]= "Reason.",
	["d r e a m e r"]= "Reason.",
	["fuck shadow"]= "Reason.", 
	["kingsofchaos"]= "Reason.",
	["fuck dod"]= "Reason.",
	["seven-private"]= "Reason.",
	["s e v e n - p r i v a t e"]= "Reason.",
	["cornerhouse"]= "Reason.",
	["c o r n e r h o u s e"]= "Reason.",
	["lir.dk"]= "Reason.", 
	["corner house"]= "Reason.",
	["joine ch"]= "Reason.", 
	["Drop Inn"]= "Reason.",
	["dropinn"]= "Reason.",
	["d r o p i n n"]= "Reason.",
	["217.215.12.141"]= "Reason.",
	["dreams.gotdns.org:412"]= "Reason.",
	["bigshare"]= "Reason.",
	["ronna.no-ip.com:412"]= "Reason.",
	["dragonslayer-gbg.no-ip.org"]= "Reason.",
	["ChatBaren.dyndns.dk:22221"]= "Reason." 
} 


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 
					SendToOps(botname, user.sName.." has been been discconect because "..a)
					SendToOps(botname, "He have written the word "..key) 
					user:Disconnect() 
				end 
			end 
		end 
	end 
end

Best regards, nErBoS
--## nErBoS Spot ##--

DoD_Owner

Thx m8... it's working perfectly.... but can you make it type the reason in my Daemonicus bot, as my old one did... ??
Owner of [??] Dimension of Deamons Private.

A nice private hub ... 100 GB min. share... wanna get regged, pm me.. ;)  (200+ users, 60TB+ share)

nErBoS

#3
Hi,

Done...

botname = "Daemonicus" 

trigs = { 
	["dreamer"]= "Reason.",
	["d r e a m e r"]= "Reason.",
	["fuck shadow"]= "Reason.", 
	["kingsofchaos"]= "Reason.",
	["fuck dod"]= "Reason.",
	["seven-private"]= "Reason.",
	["s e v e n - p r i v a t e"]= "Reason.",
	["cornerhouse"]= "Reason.",
	["c o r n e r h o u s e"]= "Reason.",
	["lir.dk"]= "Reason.", 
	["corner house"]= "Reason.",
	["joine ch"]= "Reason.", 
	["Drop Inn"]= "Reason.",
	["dropinn"]= "Reason.",
	["d r o p i n n"]= "Reason.",
	["217.215.12.141"]= "Reason.",
	["dreams.gotdns.org:412"]= "Reason.",
	["bigshare"]= "Reason.",
	["ronna.no-ip.com:412"]= "Reason.",
	["dragonslayer-gbg.no-ip.org"]= "Reason.",
	["ChatBaren.dyndns.dk:22221"]= "Reason." 
} 


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 
					SendPmToOps( botname, user.sName.." has been kicked because of Offensive Language / Advertising." ) 
					SendPmToOps(botname, "Reason: "..a)
					SendPmToOps(botname, "He have written the word "..key) 
					user:Disconnect() 
				end 
			end 
		end 
	end 
end

Best regards, nErBoS
--## nErBoS Spot ##--

MrZ

:))) hia ErBoS

ya been doing some of these mods by now... why not making an own real good one.

one that fits all request u had and that we newbee's can easy modify ourself.... or would that take away all the fun parts...hihi

Z ya
Always remember that you are unique... just like everyone else :-D

DoD_Owner

This is very nice ! Getting better and better.... but I have 1 more request for this script. Can you make it so, that the user gets the same thing in pm as I do, so that he know's what he did wrong ??   Would be extremely nice.

Thx in advance

//DoD_Owner
Owner of [??] Dimension of Deamons Private.

A nice private hub ... 100 GB min. share... wanna get regged, pm me.. ;)  (200+ users, 60TB+ share)

nErBoS

Hi,

QuoteOriginally posted by MrZ
:))) hia ErBoS

ya been doing some of these mods by now... why not making an own real good one.

one that fits all request u had and that we newbee's can easy modify ourself.... or would that take away all the fun parts...hihi

Z ya

Sorry didn't understand what you want.

About the pm user...

botname = "Daemonicus" 

trigs = { 
	["dreamer"]= "Reason.",
	["d r e a m e r"]= "Reason.",
	["fuck shadow"]= "Reason.", 
	["kingsofchaos"]= "Reason.",
	["fuck dod"]= "Reason.",
	["seven-private"]= "Reason.",
	["s e v e n - p r i v a t e"]= "Reason.",
	["cornerhouse"]= "Reason.",
	["c o r n e r h o u s e"]= "Reason.",
	["lir.dk"]= "Reason.", 
	["corner house"]= "Reason.",
	["joine ch"]= "Reason.", 
	["Drop Inn"]= "Reason.",
	["dropinn"]= "Reason.",
	["d r o p i n n"]= "Reason.",
	["217.215.12.141"]= "Reason.",
	["dreams.gotdns.org:412"]= "Reason.",
	["bigshare"]= "Reason.",
	["ronna.no-ip.com:412"]= "Reason.",
	["dragonslayer-gbg.no-ip.org"]= "Reason.",
	["ChatBaren.dyndns.dk:22221"]= "Reason." 
} 


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 
					SendPmToOps( botname, user.sName.." has been kicked because of Offensive Language / Advertising." ) 
					SendPmToOps(botname, "Reason: "..a)
					SendPmToOps(botname, "He have written the word "..key) 
					user:SendPM(botname, "You are been disconnect for have written the word "..key)
					user:Disconnect() 
				end 
			end 
		end 
	end 
end

Best regards, nErBoS
--## nErBoS Spot ##--

DoD_Owner

Thx m8... This works PERFECTLY..... I'm VERY glad for this.... thx..
Owner of [??] Dimension of Deamons Private.

A nice private hub ... 100 GB min. share... wanna get regged, pm me.. ;)  (200+ users, 60TB+ share)

MrZ

nErBoS.. i mean that u have been helping ppl a lot with all these word checking bot's..why not make one ur own and make it so its easy so even all us newbies can modify the words and other options..

just a thought to easy up ur job with all our questions :))

btw ur doing a damn good job here
TNX a lot dude

Z ya
Always remember that you are unique... just like everyone else :-D

nErBoS

Hi,

Thanks for the kind words, about making that script i could start doing, but i am having a lot of work, soon as i can i will do that.

Best regards, nErBoS
--## nErBoS Spot ##--

SMF spam blocked by CleanTalk