I don't understand... Your eggdrop change its nick every 4h ? To keep them registered ?
i get errorpektek wrote: ↑Thu Jan 02, 2025 2:17 pm look at this abah
https://forum.eggheads.org/viewtopic.p ... 0bb4f1817
[12:23:20] wrong # args: should be "bind type flags cmd/mask ?procname?"
while executing
"bind cron - 14 3 */2 * * identnick"
(file "nick/nick.tcl" line 23)
invoked from within
"source "$eggdrop(root)/nick.tcl""
(file "nick/settings.tcl" line 3)
invoked from within
"source nick/settings.tcl"
(file "faznet.conf" line 224)
[12:23:20] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
bind cron - "14 3 */2 * *" identnickif i want to run at 2 times or 2 times a day. 5 am and 5 pm, is it true that the script i changed a little
bind cron - "0 5,17 * * *" identnick
It seems like this script is not working because it does not show the identify nick process and I have tried this, is there something wrong?# Fill np with nicks and password
set np {
"abikoe" "censored"
"akoeabi" "censored"
"ombul" "censored"
}
set cnp 0
proc identnick {min hour day month wod} {
putserv "NICK [lindex $::np $::cnp]"
incr ::cnp
putserv "PRIVMSG NickServ :identify [lindex $::np $::cnp]"
#change previous command to the one used on your server
if {$::cnp >= [llength $::np]} {
set ::cnp 0
} else {
incr ::cnp
}
putserv "NICK $::botnick"
}
bind cron - "0 5,17 * *" identnick
Code: Select all
# --- Sequential NickServ Identify System ---
# Prepared for pektek
# List of nicks to identify
set ns_nicklist {
Nick1
Nick2
Nick3
Nick4
Nick5
Nick6
Nick7
Nick8
}
# Password for NickServ (if all nicks use the same password)
set ns_password "YOURPASSWORD"
# Keeps track of the current index in the nick list
set ns_index 0
# Interval: 4 hours = 14400 seconds
set ns_interval 14400
# Function to send NickServ IDENTIFY
proc ns_identify {} {
global ns_nicklist ns_password ns_index ns_interval
# Select current nick
set nick [lindex $ns_nicklist $ns_index]
# Send IDENTIFY command
putserv "PRIVMSG NickServ :IDENTIFY $nick $ns_password"
putlog "NickServ IDENTIFY sent for nick: $nick"
# Move to next nick
incr ns_index
if {$ns_index >= [llength $ns_nicklist]} {
set ns_index 0
}
# Schedule next run
utimer $ns_interval ns_identify
}
# Start system when bot connects to server
bind evnt - init-server ns_start
proc ns_start {type} {
global ns_interval
putlog "Sequential NickServ Identify System Started."
utimer 10 ns_identify
}
Code: Select all
# Nick + password list (each entry is a pair: {nick pass})
set np {
{"abikoe" "censored"}
{"akoeabi" "censored"}
{"ombul" "censored"}
}
# Counter for which nick to use
set cnp 0
proc identnick {min hour day month wod} {
# Total number of nick-pass pairs
set total [llength $::np]
# Reset index if out of range
if {$::cnp >= $total} {
set ::cnp 0
}
# Get the current nick-pass pair
set pair [lindex $::np $::cnp]
set nick [lindex $pair 0]
set pass [lindex $pair 1]
# Security check
if {$nick eq "" || $pass eq ""} {
putlog "Warning: Nick or password is empty. Identification skipped!"
return
}
# Change nick
putserv "NICK $nick"
# Identify to NickServ
putserv "PRIVMSG NickServ :IDENTIFY $pass"
# Move to next pair for the next run
incr ::cnp
# Switch back to the bot's main nickname after 2 seconds
utimer 2 [list putserv "NICK $::botnick"]
# Log message
putlog "Auto-ident: Logged in to NickServ using nick $nick."
}
# Runs every day at 05:00 and 17:00
bind cron - "0 5,17 * *" identnick