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  

 

 say script

Go down 
AuthorMessage
ComputerTech
Owner
Owner
ComputerTech


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

say script Empty
PostSubject: say script   say script Empty23/5/2020, 02:48

Code:
# Says something on any channel
# Usage: !say <chan> <what>
proc pub:say {nick host hand chan arg} {
   global botnick
   if {![auth:check $hand]} {return 0}
   if {[llength $arg] < 2} {
      notice $nick "Usage: !say <chan> <what>"
      return 0
   }
   set thechan [lindex [split $arg] 0]
   set what [lrange [split $arg] 1 end]
   if {![onchan $botnick $thechan]} {
      notice $nick "I'm not on that channel."
      return 0
   }
   puthelp "PRIVMSG $thechan :$what"
   notice $nick "Said to $thechan: $what"
   putcmdlog "<<$nick>> !$hand! ($thechan) !say $what"
Back to top Go down
http://www.computer-tech1.webnode.co.uk
 
say script
Back to top 
Page 1 of 1
 Similar topics
-
» cycle all channel script
» Match script
» Timer Script
» bot cycle every 2min script
» Auto Reply Script

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