mIRC Home    About    Download    Register    News    Help

Print Thread
#254525 14/08/15 07:13 PM
Joined: Aug 2015
Posts: 12
A
Airfox Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Aug 2015
Posts: 12
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 fr dein $4 monatigen Re-Sub!
}
}

Whats wrong D:?

Airfox #254526 14/08/15 08:00 PM
Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
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 fr dein $4 monatigen Re-Sub!
}
}


twitter @keyeslol
Airfox #254529 14/08/15 08:39 PM
Joined: Aug 2015
Posts: 12
A
Airfox Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Aug 2015
Posts: 12
Thanks! It's working but when someone resubbed than he's telling that he's new

Airfox #254530 14/08/15 09:02 PM
Joined: Aug 2015
Posts: 12
A
Airfox Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Aug 2015
Posts: 12
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!
}

Airfox #254533 14/08/15 10:51 PM
Joined: May 2010
Posts: 29
P
Ameglian cow
Offline
Ameglian cow
P
Joined: May 2010
Posts: 29
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.

Last edited by Plornt; 14/08/15 10:57 PM.

Link Copied to Clipboard