To Damn Simple Advertising Bot
 

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

To Damn Simple Advertising Bot

Started by NightLitch, 10 July, 2005, 14:27:16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NightLitch

Here it goes:

--// Simple AntiAdvertising Bot by NightLitch 2005-07-10

adverTable = {"no-ip", "myftp.org", "mine.nu"}

function ChatArrival(user,data)
	local s,e,msg = string.find(data, "%b<>%s*(.*)%|")
	if checkForAdvertising(msg) then
		user:SendData(frmHub:GetHubBotName(), "*** You have been kicked for advertising !!")
		SendPmToOps(frmHub:GetOpChatName(), "*** User "..user.sName.." has been kicked for advertising: "..msg)
		user:TempBan()
	end
end

function ToArrival(user,data)
	local s,e,msg = string.find(data, "%b<>%s*(.*)%|$")
	if checkForAdvertising(msg) then
		user:SendData(frmHub:GetHubBotName(), "*** You have been kicked for advertising !!")
		SendPmToOps(frmHub:GetOpChatName(), "*** User "..user.sName.." has been kicked for advertising: "..msg)
		user:TempBan()
	end
end

function checkForAdvertising(msg)
	for i = 1,table.getn(adverTable) do
		if string.find( msg , adverTable[i] , 1 , true ) then
			return 1
		end
	end
	return
end
-- NightLitch

Enjoy!
//NL

GeceBekcisi

Great script, thanks NightLitch.

BTW, how is Thor developing going ?
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

NightLitch

QuoteOriginally posted by GeceBekcisi
Great script, thanks NightLitch.

BTW, how is Thor developing going ?

will take some while, I have created my own hubsoft ( Voltron ) :D so Thor is really on hold. :(
//NL


GeceBekcisi

If you ever need betatesters, I'll be glad to work for you..
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...


Northwind

#6
Simplex Table  by Northwind ;-) 20-10-2005


adverTable = {

-- Poistamalla alla olevasta -- merkit saat scriptin 50% lis?? tehotappajaksi.
-- Remove -- marks and you get allmost 50% more efficent addybutcher.

-- Simplex Basic

	"bounceme.net", "b o u n c e m e", 
	"hopto.org", "h o p t o",
	"myftp.biz", "m y f t p",
	"myvnc.com", "m y v n c",
	"no-ip.", "n o - i p", "no - ip",
	"redirectme.net", "r e d i r e c t m e",		
	"servebeer.com", "s e r v e b e e r",
	"servequake.com", "s e r v e q u a k e",
	"sytes.net", "s y t e s",
	"zapto.org", "z a p t o",
	"dchub://"

-- Simplex 50%

        --,"http://", 
        --"www.", "w w w ."
	--".biz", ". b i z",
	--".com", ". c o m",
	--".net", ". n e t",
	--".org", ". o r g",
	--".fi", ". f i",
	--".se", ". s e",
	--".no", ". n o",
	--".de", ". d e",
	--".us", ". u s",
	--".be", ". b e"

	     }


Northwind

#7
This is what i have, but can somebody do one thing to it. I need safeaddres table, cos i only have few adress what i wanna promote. Others will be blocked.

I don't wanna use Lucifer, i like this little script.

So please somebody help me with this prob.

--// Simple AntiAdvertising Bot by NightLitch 2005-07-10
--// SimpleX addylist by Northwind 21.10.2005
--// #Justiina Finnish Translation also by Northwind



adverTable = {

-- Poistamalla alla olevasta -- merkit saat scriptin 50% lis?? tehotappajaksi.
-- Remove -- marks and you get allmost 50% more efficent addybutcher.

-- Simplex Basic

	"bounceme.net", "b o u n c e m e", 
	"hopto.org", "h o p t o",
	"myftp.biz", "m y f t p",
	"myvnc.com", "m y v n c",
	"no-ip.", "n o - i p", "no - ip",
	"redirectme.net", "r e d i r e c t m e",		
	"servebeer.com", "s e r v e b e e r",
	"servequake.com", "s e r v e q u a k e",
	"sytes.net", "s y t e s",
	"zapto.org", "z a p t o",
	"dchub://", 

-- Simplex 50%

        --,"http://", 
        --"www.", "w w w ."
	--".biz", ". b i z",
	--".com", ". c o m",
	--".net", ". n e t",
	--".org", ". o r g",
	--".fi", ". f i",
	--".se", ". s e",
	--".no", ". n o",
	--".de", ". d e",
	--".us", ". u s",
	--".be", ". b e"

	     }



function ChatArrival(user,data)

	local s,e,msg = string.find(data, "%b<>%s*(.*)%|")

	if checkForAdvertising(msg) then

		user:SendData(frmHub:GetHubBotName(), "*** Kaulimesta tuli ett? l?s?hti, perkeleen mainostaja!")

		SendPmToOps(frmHub:GetOpChatName(), "*** K?ytt?j? "..user.sName.." sai #Justiinan kaulimesta koska mainosti: "..msg)

		user:TempBan()

	end

end



function ToArrival(user,data)

	local s,e,msg = string.find(data, "%b<>%s*(.*)%|$")

	if checkForAdvertising(msg) then

		user:SendData(frmHub:GetHubBotName(), "*** Kaulimesta tuli ett? l?s?hti, perkeleen mainostaja!")

		SendPmToOps(frmHub:GetOpChatName(), "*** K?ytt?j? "..user.sName.." sai #Justiinan kaulimesta koska mainosti: "..msg)

		user:TempBan()

	end

end



function checkForAdvertising(msg)

	for i = 1,table.getn(adverTable) do

		if string.find( msg , adverTable[i] , 1 , true ) then

			return 1

		end

	end

	return

end

-- NightLitch
 


Northwind

#8
can somebody help please ;-)


Cêñoßy†ê

Try this one

--// Simple AntiAdvertising Bot by NightLitch 2005-07-10
--// SimpleX addylist by Northwind 21.10.2005
--// #Justiina Finnish Translation also by Northwind
--// SafeAddress table by C??o?y??



adverTable = {

-- Poistamalla alla olevasta -- merkit saat scriptin 50% lis?? tehotappajaksi.
-- Remove -- marks and you get allmost 50% more efficent addybutcher.

-- Simplex Basic

	"bounceme.net", "b o u n c e m e", 
	"hopto.org", "h o p t o",
	"myftp.biz", "m y f t p",
	"myvnc.com", "m y v n c",
	"no-ip.", "n o - i p", "no - ip",
	"redirectme.net", "r e d i r e c t m e",		
	"servebeer.com", "s e r v e b e e r",
	"servequake.com", "s e r v e q u a k e",
	"sytes.net", "s y t e s",
	"zapto.org", "z a p t o",
	"dchub://", 

-- Simplex 50%

        --,"http://", 
        --"www.", "w w w ."
	--".biz", ". b i z",
	--".com", ". c o m",
	--".net", ". n e t",
	--".org", ". o r g",
	--".fi", ". f i",
	--".se", ". s e",
	--".no", ". n o",
	--".de", ". d e",
	--".us", ". u s",
	--".be", ". b e"

	     }

[COLOR=red]SafeAddressTable = {"hub1.no-ip.org",hub2.no-ip.org"}[/COLOR] 

function ChatArrival(user,data)
	local s,e,msg = string.find(data, "%b<>%s*(.*)%|")
[COLOR=red]	if not checkSafe(msg) then[/COLOR] 
	if checkForAdvertising(msg) then
		user:SendData(frmHub:GetHubBotName(), "*** Kaulimesta tuli ett? l?s?hti, perkeleen mainostaja!")
		SendPmToOps(frmHub:GetOpChatName(), "*** K?ytt?j? "..user.sName.." sai #Justiinan kaulimesta koska mainosti: "..msg)
		user:TempBan()
		end
	[COLOR=red]return 1
	end[/COLOR]
end



function ToArrival(user,data)
	local s,e,msg = string.find(data, "%b<>%s*(.*)%|$")
[COLOR=red]	if not checkSafe(msg) then[/COLOR]
	if checkForAdvertising(msg) then
		user:SendData(frmHub:GetHubBotName(), "*** Kaulimesta tuli ett? l?s?hti, perkeleen mainostaja!")
		SendPmToOps(frmHub:GetOpChatName(), "*** K?ytt?j? "..user.sName.." sai #Justiinan kaulimesta koska mainosti: "..msg)
		user:TempBan()
	          end
	[COLOR=red]return 1
	end[/COLOR]
end

[COLOR=red]function checkSafe(msg)
	for i = 1,table.getn(SafeAddressTable) do
		if string.find( msg , SafeAddressTable[i] , 1 , true ) then
			return 1
		end
	end
	return
end[/COLOR]

function checkForAdvertising(msg)
	for i = 1,table.getn(adverTable) do
		if string.find( msg , adverTable[i] , 1 , true ) then
			return 1
		end
	end
	return
end

-- NightLitch
Powered By Leviathan™ 2nd Generation v. 1.9

SMF spam blocked by CleanTalk