I do everything what says in the file, I mean, I configure all the directives, put the file into the scripts folder, add the line in my *.conf, and reload my bot.
Nothing Happens
the bot doesn't send any message..
When the bot starts, loads the tcl script, but as I said
######################################################################
# SendMsg 1.0 - Send Messages to channels specified every X minutes #
# #
# Created by WPnL #
# Report bugs to wpnl@lycos.co.uk #
# This script is freeware. #
# Feel free to edit it. #
######################################################################
### SETTINGS ###
# Channels where the msg is sent to.
# If you want to use several channels put a space between them
set channels "#somechannel"
# How often do you want the msg to be displayed (in minutes)
set minutes 10
# Set your msgs here
# \002 bold
# \003 colour (ex: \0030,12 textcolor=0 white; backgroundcolor=12 blue)
# \022 reverse
# \037 underline
# Write several lines for several msgs
set msgs {
"\002Change your nick by typing /nick New-Nick"
"\002Welcome to #channel"
}
### YOU ARE DONE NOW. YOU DON'T NEED TO EDIT ANYTHING ELSE FROM HERE ###
if {![info exists sendtext_running]} {
timer $minutes sendtext
set sendtext_running 1
}
proc sendtext {} {
global channels minutes msgs
foreach channel $channels {
foreach msg $msgs {
putserv "PRIVMSG $channel :$msg"
}
}
timer $minutes sendtext
return 1
}
putlog "SendMsg 1.0 by WPnL Loaded"