i need help with this i dont know if it wil work
-
on 1:join:#botsparadise:{
if ($nick == $me) { /halt }
else { /write join.ini $nick }
}
on 10:text:.next:#botsparadise:/mode #botsparadise +v $read(join.ini, 1) | /say #botsparadise $read(join.ini, 1) u will be helped by $nick
-
u can't use /say in on text event, then use /msg
i can't tell u nothing else, cuz u didn't said what u want it to do
anyway, in the on join event u could prefix the event with "!" and remove the 'if' and 'else' part from the event
on !1:join:#:......
i want it to when someone joins the channel add their nick to an ini but without it adding mine when i join
but if i romeve the "if" it will add my nick to the ini
The ! prefix prevents the event from triggering for you.
on !1:join:#botsparadise:{ write join.ini $nick }
on 10:text:.next:#botsparadise:{ mode # +v $read(join.ini,1) | msg # $read(join.ini, 1) u will be helped by $nick }
the "!" is like if ($nick != $me)
for some reason it wont write anythin to the ini
Why an .ini anyway, why not a .txt file?
on +1!:join:#botsparadise:{
write join.txt $nick
}
on 10:text:.next:#botsparadise:{
if $read(join.txt,1) {
mode #botsparadise +v $ifmatch
msg #botsparadise $ifmatch you will be helped by $nick
write -dl1 join.txt
}
}
Make sure there is no other onjoins in the same file that may conflict with this.
Thats great thanx lots all
Btw is it possible to make it so when someone parts the channel it removes them from the txt file?
on !1:part:#botsparadise:{ write -ds $+ $nick join.txt }
if the file is join.ini replace with join.ini