mIRC Homepage
Posted By: Airfox Sub Script - 14/08/15 07:13 PM
Hello, I got a little problem. My Subscrip doesn't work smirk

on *:TEXT:*subscribed*:#: {
if ($nick == twitchnotify) {
/msg /me Willkommen $1 du bist nun ein offizelles Mitglied der Subarmy!!
}
}

on *:TEXT:*subscribed for*:#: {
if ($nick == twitchnotify) {
/msg /me $1 danke für dein $4 monatigen Re-Sub!
}
}

Whats wrong D:?
Posted By: keyeslol Re: Sub Script - 14/08/15 08:00 PM
Change it to:

Code:
on *:TEXT:*subscribed*:#: {
if ($nick == twitchnotify) {
.msg # /me Willkommen $1 du bist nun ein offizelles Mitglied der Subarmy!! 
}
}

on *:TEXT:*subscribed for*:#: {
if ($nick == twitchnotify) {
.msg # /me $1 danke für dein $4 monatigen Re-Sub!
}
}
Posted By: Airfox Re: Sub Script - 14/08/15 08:39 PM
Thanks! It's working but when someone resubbed than he's telling that he's new
Posted By: Airfox Re: Sub Script - 14/08/15 09:02 PM
Ok fixed wink

on *:TEXT:*subscribed*:#: {

if ($nick == twitchnotify) && ( $4 == $null) {
.msg # /me Welcome $1 you're now a member of the subarmy!
}

elseif ($nick == twitchnotify) && ( $4 isnum ) {
.msg # /me <3 Wow! $1 has subscribed for $4 months in a row!
}
Posted By: Plornt Re: Sub Script - 14/08/15 10:51 PM
Originally Posted By: Airfox
Ok fixed wink

on *:TEXT:*subscribed*:#: {

if ($nick == twitchnotify) && ( $4 == $null) {
.msg # /me Welcome $1 you're now a member of the subarmy!
}

elseif ($nick == twitchnotify) && ( $4 isnum ) {
.msg # /me <3 Wow! $1 has subscribed for $4 months in a row!
}


First up any reason why you are messaging /me ? (Unsure if this is a twitch command or something). If you are wanting the equivilent of someone typing /me in a chat box then you should use:

Code:
describe $chan My message here


Edit: Ah yeah, it appears that this is the case, pretty weird way of doing it on twitch's part.

Also to note, you are missing a closing bracket at the last line. Always make sure the amount of { you open corresponds to the amount of closing braces }.

Otherwise when you go to add things to the end of the file, you may find it behave unexpectedly.
© mIRC Discussion Forums