TCLDROP
Would you like to react to this message? Create an account in a few clicks or log in to continue.
TCLDROP

Eggdrop And TCL Help, Support And Chat
 
HomeHome  PublicationsPublications  FAQFAQ  SearchSearch  MemberlistMemberlist  Latest imagesLatest images  UsergroupsUsergroups  RegisterRegister  Log in  CalendarCalendar  WebsiteWebsite  ChatRoomChatRoom  

 

 Simple read from file script

Go down 
AuthorMessage
ComputerTech
Owner
Owner
ComputerTech


Posts : 99
Points : 268
Reputation : 0
Join date : 2020-04-30

Simple read from file script Empty
PostSubject: Simple read from file script   Simple read from file script Empty11/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
 }
}
Back to top Go down
http://www.computer-tech1.webnode.co.uk
 
Simple read from file script
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
TCLDROP :: Other :: Code-
Jump to: