mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2016
Posts: 86
B
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2016
Posts: 86
Hello,

I have my bot that is connected into a bunch of partnered streamers and I'm still trying to find the right "sub announce script".

Some scripts, instead "announcing the sub", I have it set up that it'll give points if the streamer has a currency system.

But for the other channels it's connected to it'll to a normal announce script but I need it to have more than one message that's being sent. I've used different ways to put to put the message like:

Code:
msg $chan


Code:
msg #CHANNELNAME


Code:
$msg $chan


Code:
$msg MESSAGE HERE


and all of them seem to not work.

Here are is the scripts I would have for both streams that have a currency system and don't have one:

Code:
on *:LOGON:*:{
  raw CAP REQ :twitch.tv/membership
  raw CAP REQ :twitch.tv/tags
  raw CAP REQ :twitch.tv/commands
  /debug @raw
}

on 1:TEXT:*subscribed*:#coldsidetv:{
  if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
  elseif ($nick == twitchnotify) && ( $4 == $null ) { msg $chan !bonus $1 1000 }
          ;;I need it to have extra lines here;;
}


raw USERNOTICE:*:{
  if (($msgtags(msg-id).key == resub) && ($1 == #coldsidetv)) {
    var %nick $iif($msgtags(display-name).key, $v1, $msgtags(login).key)
    if ($0 == 1) {
      msg $chan !bonus $1 1000 
          ;;I need it to have extra lines here;;
    }
    else {
    msg $chan !bonus $1 1000 }
          ;;I need it to have extra lines here;;
  }
}


And for the streams that don't have a currency system:

Code:
on 1:connect: { raw CAP REQ :twitch.tv/membership }

on 1:text:*subscribed*:#bigfoltz:{
  if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
  elseif ($nick == twitchnotify) && ( $4 == $null ) { describe $msg foltzLove $1 has just subscribed!! foltzHype }
}
          ;;I need it to have extra lines here;;

raw USERNOTICE:*:{
  if ($msgtags(room-id).key == 32607302) {
    if ($2- == $null) && (resub isin $msgtags) {
      describe $msg $1 foltzLove $msgtags(display-name).key has just resubscribed for $msgtags(msg-param-months).key months in a row! foltzHype
    }
    else {
      describe $msg $1 foltzLove $msgtags(display-name).key has just resubscribed for $msgtags(msg-param-months).key months in a row! foltzHype with the message: $2-
          ;;I need have it so it makes extra messages here;; 
    }
  }
}


I know I made WAAYYY too many post on the forums about sub scripts but none have seem to worked the way it's needed. Hope this is the last one and can resolve everything.

If something is not understandable, feel free to ask and I will get back ASAP

Thanks a bunch <3

Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
The only thing i see is you're missing brackets around your halt.

Code:
{ halt }


Also, there were a bunch of people debating about the room-id.key vs the channel name. I do mine by room-id.key, you might want to try that instead. I made a post on here on how to find it awhile ago.


twitter @keyeslol
Joined: Apr 2016
Posts: 86
B
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2016
Posts: 86
Hey @keyeslol,

I mess with the key more than I do with the #Channelnames

But would you know any way for multiple messages to go through the chat as well? Ever one's I tried all came back into my whispers for some odd reason, even with

Code:
msg $chan


?

Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
the describe at the beginning is fine. Make sure you use separate remotes files.

Your code looks fine.


twitter @keyeslol

Link Copied to Clipboard