Aisss....
MikeChat isa msg no a notice.
And about 2 minutes, well or 5minutes i dont know. Simply i view if the bot is connected much time and send a msg to about 36 persons the irc blok the msgs and make error.
And for solution this, the best idea is when the bot send about 36 msg disconnect/connect.
A friend say are another form. WIth "Hop" but i not have idea about this command i looking in goggle for examples,etc..
for the moment the code is this(thanks to KingTomato):
on *:JOIN:#: {
var %file = users.txt, %line = $lines(%file)
while (%line > 0) {
var %string = $read(%file,n,%line)
if (%string iswm $nick) /greet_user $chan $nick
/dec %line
}
}
alias greet_user {
if ($1) {
var %chan = $1, %nick = $2
if (!$timer(greet_user)) .timergreet_user 1 0 /msg %nick Welcome!! $chr(124) /greet_user
else /set %greet.user $addtok(%greet.user,$+(%chan,:,%nick),32)
}
else if (%greet.user != $null) {
var %next = $gettok(%greet.user,1,32), %chan = $gettok(%next,1,58), %nick = $gettok(%next,2,58)
if ($gettok(%greet.user,2-,32)) /set %greet.user $v1
else /unset %greet.user
.timergreet_user 1 0 /msg %nick Welcome!! $chr(124) /greet_user
}
And the users.txt for the moment have this:
*******************************************
Jr*
*NewBie
*Admin*
*******************************************
I dont know if the code have and error and the irc detect flood or anything.
MikeChat
and why does the bot greet everyone every 2 minutes?
I don't want my bot disconnec/connect every 2 minutes, i want my bot is always online and say "welcome" to the people enter the channel.
But have a problem and when say "welcome" to more than 36 +o- persons an error ocurred. And for the moment the unique solution i have is this disconnect/connect when i view the error appears. But i need view in all moment the channel for disconnect/connect.
And for this i will make this code disconnect/connect for make the same i make to solution the error but in automatic.
But well if you find the error or another solution is welcome!!
Idea : Not is possible make a "message counter" and when send 36msg the bot disconnect/connect to the same channel ?(for example)