Advertisement
Guest User

Untitled

a guest
Nov 11th, 2016
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.81 KB | None | 0 0
  1. Network & Channel Setup
  2. -------------------------------------------------------------------------------
  3.  
  4. Admin Network
  5. -------------
  6.  
  7. You should setup your admin network on a network that has "fakelag" dissabled, or the ability to OPER the bot.
  8. As you can imagine there is alot of data to be pasted to channels and you don't want to be kicked
  9. for flooding every time you type !help.
  10.  
  11. Add an IRC network with direct connection
  12. -----------------------------------------
  13.  
  14. If you want the bot to connect to your znc bouncer, look at section 1.2.
  15.  
  16. Begin by editing the slftp.ini file and enter the nickname you wish to have.
  17.  
  18. Then it's time to add a connection to a IRC network.
  19.  
  20. # !ircnetadd <NETWORKNAME> <url.to.irc> <port> <sslmode on/off>
  21.  
  22. Example:
  23.  
  24. # !ircnetadd LINKNET eu.link-net.org:7000 1
  25.  
  26. *** sslmode is 0 or 1
  27.  
  28. Now you have the bot on linknet. And you can add further irc networks for other sites.
  29.  
  30. Check if the bot is connected
  31.  
  32. # !ircstatus
  33.  
  34. Add an IRC network with ZNC
  35. ---------------------------
  36.  
  37. Making your bot to connect to your znc bouncer is simple. using ZNC is useful when you only want one user visible
  38. on channel, both the one you chat from and your bot. It is also useful if you want to have different nicknames
  39. on different irc networks, as the current version of slftp only allows one irc nickname for all the servers.
  40.  
  41. # !ircnetadd <NETWORKNAME> <url.to.irc> <port> <sslmode on/off> <user:password>
  42.  
  43. Example:
  44.  
  45. # !ircnetadd SexyBnc irc.znc.bouncer.com:1337 1 myznc:easilycracked
  46.  
  47. Check if the bot is connected
  48.  
  49. # !ircstatus
  50.  
  51. IRC channels and blowfish
  52. -------------------------
  53.  
  54. Adding IRC channels
  55. -------------------
  56.  
  57. After you have created your irc networks you need to add irc channels for the bot to join.
  58.  
  59. # !ircchanadd <NETWORKNAME> <channel>
  60.  
  61. Example:
  62.  
  63. # !ircchanadd LINKNET #channel
  64.  
  65. IRC channel passwords
  66.  
  67. If the irc channel requires a password:
  68.  
  69. # !ircchankey <NETWORKNAME> <channel> <key>
  70.  
  71. Example:
  72.  
  73. # !ircchankey LINKNET #channel mysecretkey
  74.  
  75. IRC channel fish keys
  76. ---------------------
  77. If your channel requires a fish key
  78. NOTE: If you are using fish in your znc you can skip this step.
  79. UNLESS you are setting up your admin channel blowfish is mandatory in slftp.
  80.  
  81. # !ircchanblow <NETWORKNAME> <channel> <blowfishkey>
  82.  
  83. Example:
  84.  
  85. # !ircchanblow LINKNET #channel %%$#&$%&342546456345#$%45654DFSASGF
  86.  
  87. Adding sites
  88. ------------
  89.  
  90. Now it's time to add sites
  91.  
  92. # !addsite <SITENAME> <user> <password> <ip>:<port>
  93.  
  94. Example:
  95.  
  96. # !addsite TRANNYHEAVEN buck angel 127.0.0.1:6969
  97.  
  98. In case your site has more than one bnc's you can add more bnc's with the !addbnc command
  99.  
  100. # !addbnc TRANNTHEAVEN 192.168.1.1:6969
  101.  
  102. Adding sections
  103. ---------------
  104.  
  105. slFtp has default section names for releases which you can see under the [sections] in the slftp.precatcher file,
  106. you can edit it as you like. It's highly recommended to become familiar with the file as it will make your life
  107. so much easier when using slFtp.
  108.  
  109. For a small example as a short introduction to the sections take a look at the following:
  110.  
  111. Under my [slftp.precatcher] I have:
  112.  
  113. ISOAPPS=ISOAPPS,APPS,ISO APPS,APPS ISO
  114. ISOGAMES=ISOGAMES,ISO GAMES,GAMES ISO,GAMES
  115.  
  116. This means that whenever something is uploaded to the sections that have ISO in their name, will be put into the section ISOGAMES
  117.  
  118. So if you want to race games to a site you need to add the section ISOGAMES to that particular site.
  119.  
  120. We add the section with the following command:
  121.  
  122. # !sections <sitename> <section>
  123.  
  124. Example:
  125.  
  126. # !sections TRANNYHEAVEN ISOGAMES
  127.  
  128. To remove sections, just run the same !section command again with the name of the section you wish to remove
  129.  
  130. # !sections TRANNYHEAVEN ISOGAMES
  131.  
  132. To see all the sections you have added you can use the !sections command
  133.  
  134. # !sections TRANNYHEAVEN
  135.  
  136. Mapping sections
  137. ----------------
  138.  
  139. After you have set up your sections as you like them you might want to look at [mapping] under the slftp.precatcher file.
  140. It is going to help you sort out what goes where. Here we have a small example.
  141.  
  142. ISOGAMES;CLONEGAMES;*clone*,*clonedvd*,*clones*
  143. ISOGAMES;MACGAMES;*MAC*,*MACOSX*,*OSX*,*MACOS*,*APPLE*
  144.  
  145. This means that everything that comes into ISOGAMES with the name MACOS or MAC will be mapped to a section that's called MACGAMES.
  146.  
  147. So if any of my sites allows MACGAMES, then I'll just have to add the MACGAMES section to it.
  148.  
  149. # !section TRANNYHEAVEN MACGAMES
  150.  
  151. You could put everything under ISOGAMES but as some sites don't allow clone then it's necessary to map clone to another section.
  152.  
  153. Here are some further examples for mapping, if you understand the mapping you can probably figure out what is being done here.
  154.  
  155. 0DAY;PDA;*.SymbianOS*,*-*PDA,*.WM2003.*,*.XScale.*,*.J2Me*,*.PalmOS.*
  156. 0DAY;EBOOK;*.EBOOK-*,*.EBOOK.*,ActualTests.*,*.Exam.Q.*
  157. X264;HD720;*.720p.*,*.720p-*
  158. X264;HD1080;*.1080p.*,*.1080p-*
  159. ISOAPPS;ISOTRAINING;*Lynda.com.*,*VTC.*,*Total.Training*,*TRAINSIGNAL.*,*Train.Signal*
  160. MDVDR;MHD;*.1080p.*,*.1080p-*,*.720p.*,*.720p-*,*.x264.*,*.x264-*
  161.  
  162. NOTE: For a more detailed explination of the precatcher please see the Precatcher file.
  163.  
  164. Set directories
  165. ---------------
  166.  
  167. Once you have set your sections you need to set your directories so that slftp knows where to put the files
  168. that are going into that particular section.
  169.  
  170. This is done with the !setdir command
  171.  
  172. # !setdir <sitename> <section> <directory>
  173.  
  174. NOTE: The <section> is the default section in the precatcher file, not the sitebot sections.
  175.  
  176. Examples:
  177.  
  178. # !setdir TRANNYHEAVEN MACGAMES /MACGAMES
  179. # !setdir TRANNYHEAVEN MP3 /MP3-TODAY
  180.  
  181. Once you have set all your directories you can use the !site command to get a overview of all the sections/directories you have set, useful to see if you are forgetting something.
  182.  
  183. # !site TRANNYHEAVEN
  184.  
  185.  
  186. Add precatcher
  187. --------------
  188.  
  189. Next we need to add a precatcher to catch the announce from the sitebot.
  190. There are a few ways to do this, so I suggest you read the precatcher file so you know what your doing,
  191. and can make a decision on what suits you best.
  192.  
  193. # !catchadd <SITE> <NETWORKNAME> <channel> <botname> <NEWDIR> <message>
  194.  
  195. Example:
  196.  
  197. # !catchadd TRANNYHEAVEN LINKNET #trannychan trannybot NEWDIR cum,in,my,ass
  198.  
  199. To see if your precatcher works and actually catches announces you can use the [!catchtest] command.
  200.  
  201. Example:
  202.  
  203. # !catchtest LINKNET #trannychan trannybot ( xxx|cum ) . Tranny.Grannys.20.XXX.DVDRip.XviD-SiCKFUCK . fag/iND
  204. # |Process LINKNET #trannychan trannybot ( xxx|cum ) . Tranny.Grannys.20.XXX.DVDRip.XviD-SiCKFUCK . fag/iND
  205. # |ProcessReleaseTranny.Grannys.20.XXX.DVDRip.XviD-SiCKFUCK iND NEWDIR
  206. # |Cleanedup line wo rlsname: xxx cum fag iND
  207. # |Section: XXX
  208. # |Event: NEWDIR
  209. # |Ok.
  210.  
  211.  
  212. Adding rules
  213. ------------
  214.  
  215. Now it's time to set up some rules to filter out what you want to trade, and what you want to skip.
  216. You add the rules for the site you want to trade to (the destination).
  217.  
  218. Available rules
  219. ---------------
  220.  
  221. It's best to get familiar with the available rules so you can decide what you need to do. To see available rules:
  222.  
  223. # !rulelist
  224.  
  225. To see how a particular rule functions:
  226.  
  227. # !rulehelp rulename
  228.  
  229. Rule operators
  230. --------------
  231.  
  232. Another thing you need to get familiar with are the rule operators, some basic knowledge that * is a wildcard is also good.
  233. Knowing regex might also come in handy.
  234.  
  235. Operators:
  236.  
  237. = simple equality test
  238. =~ mask match with wildchar support. Eg.: releasename =~ *-BERC in list operator, matches any items in the lsit. Eg.: mp3source in TAPE, VINYL
  239. < <= >= > comparator for mp3year
  240. @ equality match but it expects SITENAME as parameter
  241.  
  242. You can use the special section * for section-generic rules, also * for site-generic rules.
  243.  
  244. Creating rules
  245. --------------
  246.  
  247. Now that you've gotten yourself familiar with the available rules, operators and hopefully familiarised yourself
  248. with the requirements of the site ("site rules" in most cases) you need to create a list of rules.
  249. The order of the rules is important, the first matching (ALLOW) rule will apply.
  250. The exception to this rule is global rules. They will ALWAYS be put first regardless of the rule number.
  251.  
  252. If our site allows everything in a section we just need one rule.
  253.  
  254. # !ruleadd TRANNYHEAVEN XXX if default then ALLOW
  255.  
  256. Note that every other rule we'd add after that rule would get ignored, since we just allowed everything.
  257.  
  258. It's best to rule out what's forbidden (DROP) and then allow the rest. Always try and do drop rules as much as possible rather than ALLOW.
  259. Let's say our site only allows scripted tv shows from the UK and the USA.
  260.  
  261. # !ruleadd TRANNYHEAVEN TV720 ifnot tvcountry =~ *USA* || tvcountry =~ *UNITED STATES* || tvcountry =~ *UK* || tvcountry =~ *United Kingdom* then DROP
  262. # !ruleadd TRANNYHEAVEN TV720 ifnot tvscripted then DROP
  263. # !ruleadd TRANNYHEAVEN TV720 if default then allow
  264.  
  265. Another example where our site only allows non/foreign raggae mp3's ripped from cd, vinyl, web that's newer than 2009
  266.  
  267. # !ruleadd TRANNYHEAVEN MP3 if mp3genre =~ *reggae* || mp3genre =~ *Dance Hall* || mp3genre =~ *dancehall* then DROP
  268. # !ruleadd TRANNYHEAVEN MP3 if not mp3language in en then DROP
  269. # !ruleadd TRANNYHEAVEN MP3 if not ( mp3source in CD, CDR, Vinyl, WEB ) then DROP
  270. # !ruleadd TRANNYHEAVEN MP3 if mp3year < 2009 then DROP
  271. # !ruleadd TRANNYHEAVEN MP3 if default then ALLOW
  272.  
  273. NOTE: In order for tvmaze, mp3/flac, imdb etc lookups. You MUST set these slftp default sections in your slftp.ini file under [kb].
  274. TMP3Release=MP3,FLAC
  275. TTVRelease=TV,TV-DVDRIP,TV-BLURAY,TV-DVDR,TV-HR,TV-WMV,TV-X264,TV-SDX264,TV-XVID,TV-SPORT
  276. TIMDBRelease=XVID,X264,DVDR,BLURAY
  277.  
  278. Testing your rules
  279. ------------------
  280.  
  281. You can test your rules by looking up existing releases on a site and see if they are matched or not,
  282. or you can just wait for the next release to be catched.
  283. I strongly advise that you test your rules with existing releases, not all siteops are keen on trial runs.
  284.  
  285. Begin by looking up the release
  286.  
  287. # !lookup TRANNYHEAVEN XXX Tranny.Grannys.20.XXX.DVDRip.XviD-SiCKFUCK
  288.  
  289. then see the info on the relase
  290.  
  291. # !kbshow XXX Tranny.Grannys.20.XXX.DVDRip.XviD-SiCKFUCK
  292.  
  293.  
  294. Add routes
  295. ----------
  296.  
  297. Now that the basic stuff has been set up, it's time to decide what sites trade where, we do that with routes.
  298. You can manually set the number [1-9]. If you chose 9 slftp will calculate the routes according to speed, time and ranking.
  299. This is probably the best option for n00bs.
  300.  
  301. If you want to read more on this look at the chains file.
  302.  
  303. # !routeset sitefrom siteto 9
  304.  
  305. For example if we want to trade stuff from TRANNYHEAVEN to GRANNYHEAVEN and then from GRANNYHEAVEN to TRANNYHEAVEN aswell
  306.  
  307. # !routeset TRANNYHEAVEN GRANNYHEAVEN 9
  308. # !routeset GRANNYHEAVEN TRANNYHEAVEN 9
  309.  
  310.  
  311. Turn on auto
  312. ------------
  313.  
  314. Last but not least, turn on the auto
  315.  
  316. # !auto 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement