how would i use wildcards in the command to post this txt file?
so i could type e.g fadfsjoke and have it work
i tried adding * and it then requires me to type *joke lol
set bfile "scripts/joke.txt"
#sets the command it should go on off in a chan or so
set cmd "joke"
#this is where you set where the file should be printed out
#private = 0
#channel = 1
set bwhere 1
## don't edit below this line -----------------------------------
bind pub -|- $cmd dumpfile
proc dumpfile {nick handle host chan text } {
global bfile bwhere
set foo [open $bfile r]
while { ! [eof $foo] } {
set line [gets $foo]
if {!$bwhere} {
puthelp "NOTICE $nick :$line"
} else {
puthelp "NOTICE $chan :$line"
}
}
}
is there something easy i could do to implement this?