hi, i need Code for trivia, for add questions whit and write this in a txt file ) /msg botnick answer*questions or !add answer*questions
thanks ..
Code: Select all
bind msg - !add proc_name
proc proc_name {nick uhost handle arg} {
if {![file exists the_datafile]} {close [open the_datafile w]}
set io [open the_datafile a]
puts $io $arg
close $io
putserv "NOTICE $nick :Added; $arg"
}