Help about the !bop command for twitch

By Tozino on Aug 15, 2014

The bop command, i can't get right about the last one, which involves to prevent any viewers to use and get bopped in 5 second as warning, can you help me about that? thanks in advance

edit: this code triggers the first and last. this should not happen it

i can't get this right with | anyone can explain me?

on *:TEXT:!bop*:#: {
  if ($nick isop #) {
    if (!$2) msg # who i am going to bop
    elseif ($2) && (!$3) msg # /timeout $2 1
    elseif ($2) && ($3) msg # /timeout $2 $3
  }
  elseif (!$2) && (!$3) msg # /timeout $nick 5 $+ | /msg # Oh you are not gonna abuse it.
}

Comments

Sign in to comment.
Sjoepele   -  Aug 15, 2014

I have no idea what you want but from what i understand the code continues when it should not? try this maybe

on *:TEXT:!bop*:#: {
  if ($nick isop #) {
    if (!$2) {
msg # who i am going to bop
return
}
    elseif ($2) && (!$3) {
msg # /timeout $2 1
return
}
    elseif ($2) && ($3) {
msg # /timeout $2 $3
return
}
  }
  else (!$2) && (!$3) {
msg # /timeout $nick 5 
msg # Oh you are not gonna abuse it.
return
}
}
Tozino  -  Aug 15, 2014

Oh thanks! , the problem was when i use this command, no matter if you are streamer, mod or viewer, it will pop the last message

i tested and it gave me the error, the error was (!$2) unknown command

Sjoepele  -  Aug 15, 2014

Yeah it gives that error but it does work :P

Sjoepele  -  Aug 16, 2014

Well now that i think about it, on the final else it should probably always execute( if the requester is not OP ), not just when (!$2) && (!$3). So i guess that should look like this?

else  {
msg # /timeout $nick 5 
msg # Oh you are not gonna abuse it.
return
}
Tozino  -  Aug 17, 2014

Thank you!, by the way, is there better place to ask?

right now i'm trying to find the answer but i can't find the code i need

what i want the code can be used only on one specific twitch channel. like if ( channel == tozino).

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.