I am trying to make my eggdrop bot display a message in the chatroom. Looking in tcl-commands.doc it would appear that putserv or putquick would do the work, but if i use either of them no message comes out on the chatroom.
Here is my script:
-----------------------------------------
set greet_a "Howdy"
set greet_b "I'm BodgerBot enjoy this"
proc join_greet { nick uhost hand chan } {
global greet_a greet_b
You're sending the command "A" to the IRC server, which it won't understand. I'm assuming you want a PRIVMSG, in which case you would do:
putserv "PRIVMSG $chan :$greet_a $nick $greet_b"
Note that for these types of text messages you should use "puthelp" instead of "putserv", and you should definitely not use "putquick" which is supposed to be reserved for very important things (e.g. locking the channel quickly).