ComputerTech Owner
Posts : 99 Points : 268 Reputation : 0 Join date : 2020-04-30
| Subject: Simple read from file script 11/6/2020, 14:30 | |
| - Code:
-
set filename "help.txt"
bind pub - !help help
proc help {nick uhost hand chan text} { if ![file exists $::filename] { putserv "NOTICE $nick :Error: Can't find $::filename." } { set id [open $::filename] while {![eof $id]} { puthelp "PRIVMSG $nick :[gets $id]" } close $id } } | |
|