mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2015
Posts: 168
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Jan 2015
Posts: 168
Recently someone helped me with this script but it doesn't work as it should. Basically if I type in !away it ignores if they have typed in the chat but if they join it calls out their name. Is there anyway to only allow it to call out if they say hello or anything else in the chat instead of calling out their name when they join?


Code:
on *:TEXT:!away:#: {
  if ($nick isop #) {
    set %away.mode On    
    msg $chan Away mode activated, new users will be alerted that the streamer is away
  }
}
on !*:JOIN:#: {
  if (!%away.mode) return
  if ((%floodjoin) || ($($+(%,floodjoin.,$nick),2))) { return }
  set -u10 %floodjoin On
  set -u30 %floodjoin. $+ $nick 
  msg $chan $nick $remove(#,$chr(35)) is away, and will be back shortly  
}
on *:TEXT:!awayoff:#: {
  if ($nick isop #) {
    unset %away.mode    
    msg $chan The streamer is back! Enjoy the show. :) 

  }
}


Last edited by powerade661; 19/02/15 06:21 PM.
Joined: Mar 2014
Posts: 215
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
change
Code:
on !*:JOIN:#: {
to
Code:
on *:text:*hello*:#: {
and of course you can change hello to whatever you want


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Jan 2015
Posts: 168
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Jan 2015
Posts: 168
Thank you so much Judge smile


Link Copied to Clipboard