Is there a script where eggdrop looks for a file in a directory?
Something like !search Name
This is VERY rudimentary. There ought to be lots of things that can be done, to improve it. It just depends on what you are trying to do.haferbrei wrote:Is there a script where eggdrop looks for a file in a directory?
Something like !search Name
Code: Select all
# November 11, 2020
#
# http://forum.egghelp.org/viewtopic.php?p=109154&sid=af6ef787512bdf9d5d1f0ea3be3949e7#109154
#
##############
bind pub n "!search" filesearch
###
proc filesearch {nick uhost handle chan text} {
if {![llength [split $text]]} {
putserv "privmsg $chan :Syntax: !search path/filename (can contain wildcards) "
return 0
}
putserv "privmsg $chan :[glob [lindex [split $text] 0 ] ] "
}
###