i need help
this is not my script, merely an edited section of it that i personalized. i need help shortening and reducing the time it takes to build the html score file. the only parts im really concerned with are the BADGE AND RANK TITLES for each winner (automatically) it works as is, it just takes too damn long to build, and is killin my resources on my pc. thanks in advance
i updated the code below to reflect my fidgeting. i finally got the !delcmd to delete and check properly, i think i got the !addcmd to check for the ! prefix now, but i cant get it to stop adding multiples still??? ive been fiddlin around with the code, and i think thats all thats left for debugging before moving onto securing the code and also fixing the !editcmd section
IM NO EXPERT! this is what i came up with from jsg55's script for my bot, thank you jsg55. i couldnt figure out how to get the script to read the nickname in the text to automatically trigger. ex: "where is john?" the script would then return the status for "john" like i wrote below. or how to get this lil peice of code into the script. preferably the auto trigger anywhere in text. please help if you..
IM NO EXPERT!
this is what i came up with from jsg55's script for my bot, thank you jsg55. i couldnt figure out how to get the script to read the nickname in the text to automatically trigger. ex: "where is john?" the script would then return the status for "john" like i wrote below. or how to get this lil peice of code into the script. preferably the auto trigger anywhere in text. please help if you can, so i can clean up the code im using and also learn more. thank you.
snippet - it only works if i have it in a different file for some reason. please help me include it or make it automatically trigger upon mention of $nick in chat by any user. wether they have a status or not. if they do, then display status, if not, then display alternate generic status.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on :text:!status :#:{
if ($readini(away.ini, $2, away) == on) {
msg $chan $2 is $readini(away.ini, $2, reason) and has been gone $duration(%time [ $+ [ $2 ] ]) }
if ($readini(away.ini, $2, away) != on) {
msg $chan $2 is either Watching the show, or Silently Lurking. If they dont respond, Try harder. } }
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on $:text:/^(brb|bbl|afk|bbiab)\b/Si:#:awaycheck $1-
on $:action:/^(brb|bbl|afk|bbiab)\b/Si:#:awaycheck $1-
alias -l awaycheck {
if ($2 == $null) { writeini away.ini $nick reason lurking. }
if ($2 != $null) { writeini away.ini $nick reason $remove($2-,$chr(36)) }
msg # $nick is now $readini(away.ini, $nick, reason)
writeini away.ini $nick away on | set %away [ $+ [ $nick ] ] on | set %time [ $+ [ $nick ] ]
if ($readini(away.ini, $nick, away) == on) inc -c %time [ $+ [ $nick ] ]
}
on :text::#:awaycheck2 $1-
on :action::#:awaycheck2 $1-
alias -l awaycheck2 {
if ($readini(away.ini, $nick, away) == on) {
msg # welcome back $nick $+ , You were gone $duration(%time [ $+ [ $nick ] ])
remini away.ini $nick | unset %away [ $+ [ $nick ] ] on | unset %time [ $+ [ $nick ] ] }
}
}