Skip to content
MSN

TIme reply

A TG007 community discussion started by Gazzy.

Discussion 4 posts
Page 1 of 1
Open
Topic #6368 · 4 published posts · 655 views

Hi hi, i made my friend a sleeper bot for her room it works from the same mirc, through just sockets so ctcpreply wont work obviously does anyone know the format to reply to a time request through sockets? ive tried stuff like

 

 if ($2 = privmsg) {
   if ($4 == :TIME) { sockwrite -n %s PRIVMSG %i :TIME $date $+ , $time }
 }

 

Thanks

sockwrite back to the user on the same sockname, this will replay like if u were a webchat user, not a script

elseif ($2 == PRIVMSG) {
if (:* iswm $4) {
if (:TIME* iswm $4) {
echo -a 9,1[ 0TIMECHECK 15by 0 $+ $yourdecodealias($remove($gettok($1,1,33),:)) $+  8]
sockwrite -n $sockname NOTICE $remove($gettok($1,1,33),:) : $+ TIME $date(m/dd/yyyy) $+ $chr(44) $time(h:nn:ss TT) $+ 
}
;u may add a ping reply in here too
elseif (:PING* iswm $4) {
echo -a 9,1[ 0PINGCHECK 15by 0 $+ $yourdecodealias($remove($gettok($1,1,33),:)) $+  8]
sockwrite -n $sockname NOTICE $remove($gettok($1,1,33),:) : $+ PING $5-
}
}
}

Edited Apr 14, 2006 10:09 PM by 0bscuridad

|[ Simple Code ]|

Working now thankyou appreciated :)

 

 

the ctcp is privmsg

the ctcpreply is notice

 

 

this is the problem .