Description:
pT-PreBot is an IRC bot designed for managing pre-release data and integrating with MySQL databases, specifically tailored for eggdrop bots.
-
Fast Addpre System for Insert to database, that Supports: !addpre !info !genre !addurl !nuke !unnuke !addold !oldinfo !addsfv !addnfo !addjpg !addm3u
-
IRC announce for PRE / INFO / URL / NUKE / UNNUKE
-
Extended Search System that Supports: !pre !dupe !group !db
-
Full Database stats using !db showing: Total releases Total nukes Total unnukes % Nuked Total groups Total sections Group with most releases Newest group added (with only one release) First release in DB Latest release in DB How many releases missing size (Count/%) How many releases missing files (Count/%) How many releases missing genre (Count/%) How many releases missing datetime (Count/%) Database size in GB
-
Module: PreDB.net API support for PRE and GROUP info - Advanced search capabilities using PreDB.net API for precise release queries.
-
Real-time interaction and command execution via IRC channels.
-
User friendly color outputs for announces in IRC
-
Included .sql scheme for easy Database structure setup.
Ensure you have the following set up before installing pT-PreBot:
- A running MySQL or MariaDB server with a user having necessary privileges. # Prefered MariaDB Newest version wtih Tweaked inno my.cnf
- Eggdrop installed and configured / Running. # Check https://www.eggheads.org/download/ for more info how to install eggdrop
- Basic understanding of managing files and configurations on your system.
-
Install Required Packages:
sudo apt-get install jq bc
-
Download the pT-PreBot files from the repository.
-
Import the dbschema.sql into your new DB
-
Place all .sh scripts and associated files into your eggdrop bot's scripts directory.
-
Change all Mysql info in .sh files located in sh folder to your own db info
For PRE INFO URL announce change #somechan in tcl files
- Put .tcl in eggdrop.conf and Rehash your eggdrop bot.
NOTE: If you are using dbschema.sql then dont edit tables, if you running own database make sure to change info and coloumns in .sh files
- If you want to disable this module , comment in pT-pre.tcl
#set script_path2 "/eggdrop/scripts/sh/pT-preapi.sh"
If you dont want announce of PRE INFO URL comment like this in pT-addpre.tcl - pT-addinfo.tcl - pTaddurl.tcl
#putserv "PRIVMSG #somechan :$line"
Ensure your eggdrop bot is in a addpre channel that outputs following formats:
!addpre <release> <section>
!info <release> <files> <size>
!addurl <release> <url>
!gn <release> <genre>
!nuke <release> <reason> <nukenet>
!unnuke <release> <reason> <nukenet>
!addold <release> <datetime>
!oldinfo <release> <files> <size>
!addsfv <release> <urltosfv>
!addnfo <release> <urltonfo>
!addjpg <release> <urltojpg>
!addm3u <release> <urltom3u>
**Testing pT-PreBot:*
Verify that pT-PreBot .sh script is functioning correctly by testing each command in terminal executing shell script:
Simulate the !pre command:
./pT-pre.sh Twister.1996.2160p.UHD.BluRay.x265-SURCODE
Simulate the !dupe command:
./pT-dupe.sh Twister 1996 2160p
Simulate the !db command:
./pT-db.sh
Simulate the !group command:
./pT-group.sh SURCODE
-
If you need any help we are on linknet - #pt-scripts