script to block all mp3's and such
 

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

script to block all mp3's and such

Started by toolmanwill, 24 December, 2003, 16:48:03

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

toolmanwill

i am in dire need for a script either to work inside channelbot when it makes its bad files checks.
or a stand alone bot to block all files i choose,
except for any lossless types of audio and video files for a bootleg live audio and video hub i run. basically i want a main hub with only wav, shn, flac, ape, and other files that may be associated with them(txt, md5, pdf), then my other hub would use normal channel bot to handle porn and such.

thanx to anyone to can help me


Will
http://toolmanwill.com
       -= The Bootleg Network =-
---------toolmanwill.myftp.org--------- Bootleg live music
------toolmanwill.myftp.org:420------ lossless only music
-----toolmanwill.myftp.org:8000----- Bootleg Network Radio

BlazeXxX

-- Simple Illegalist v0.1
-- Created by Ptaczek, Jan-3, 2003
-- Searches for specified patterns. Useful for illegal share checking
-- Modified by <[CZ][Cable]MadMax> CZech re(s)PUBlica HUB

BotName = "Kerberos"

Files = {
   ["rape"]="Nesdilej nechutny porno! A ven!!!",
   ["sick"]="Nesdilej nechutny porno! A ven!!!",
   ["preteen"]="U nas zadny pre-teen! A ven!!!",
   ["pre-teen"]="U nas zadny pre-teen! A ven!!!",
   ["vomit"]="Nesdilej svoje zvratky! A ven!!!",
   ["fekal"]="Nesdilej nechutny materialy! A ven!!!",
   ["nazi"]="Nesdilej nazi materialy! A ven!!!",
   ["Program Files"]="Co je nam do Tvych Program Files? A ven!!!",
   ["c:\windows"]="Co je nam do Tvych Woken? A ven!!!",
   ["c:\Winnt"]="Co je nam do Tvych Woken? A ven!!!",
   ["System Volume Information"]="Co je nam do Tvych System Volume Information? A ven!!!",
   ["Recycler"]="Co je nam do Tvych odpadku? A ven!!!",
   ["Recycled"]="Co je nam do Tvych odpadku? A ven!!!",
   [".vob"]="Nesdilej VOB soubory! A ven!!!"
}

Kicked = {}

function NewUserConnected(user)
   if( Kicked[user.sName] == 1 ) then
      Kicked[user.sName] = nil
   end
   for i,v in Files do
      user:SendData("$Search Hub:"..BotName.." F?F?0?1?"..i)
   end
end

function DataArrival(user, data)
   if( strsub(data, 1, 3) == "$SR" ) then
      _,_,nick = strfind( data, "\05(%S*)|$" )
      if( nick == BotName and Kicked[user.sName] == nil ) then
         Kicked[user.sName] = 1
         Reason = FindWhat(data)
         SendToOps(BotName, "*** Uzivatel "..user.sName.." vyhozen. Duvod: "..Reason)
         user:SendPM(BotName, "Byl jsi vyhozen, protoze: "..Reason)
         user:Disconnect()
      end
   end
end

function FindWhat(data)
   for i,v in Files do
      if( strfind(strlower(data), i) ) then
         return v
      end
   end
   return "Other files"
end

BlazeXxX

Just modify the Files = { section to work with ur file types.. Add the formats u don't want to allow in ur hub and thats it..

Try it and see..

SMF spam blocked by CleanTalk