;Open mIRC and press Alt+R to open Scripts Editor, then paste this script onto the "Remote" tab in order to use it
on *:LOGON:*:{
raw CAP REQ :twitch.tv/membership
raw CAP REQ :twitch.tv/tags
raw CAP REQ :twitch.tv/commands
debug @raw
}
/*
This script can show the message if the person subbed / resubbed with a message to the broadcaster
"$msgtags(display-name).key" means the name of the person resubbed (in exact capitalisation), "$msgtags(login).key" means the name of the person resubbed (in lowercase), "$msgtags(msg-param-months).key" means the number of months the person resubbed for, "$2-" means the message left by the person resubbed
*/
raw USERNOTICE:*:{
if ($1 == #LOWER_CASE_CHANNEL_NAME_HERE) {
;New Sub
if ($msgtags(msg-id).key == sub) {
if ($regex($msgtags(display-name).key, /^[a-z\d_]+$/ig)) {
if ($msgtags(display-name).key != $null) {
if ($msgtags(msg-param-sub-plan).key == Prime) {
if (!$2-) {
msg $1 Welcome $msgtags(display-name).key using Twitch Prime!
}
else {
msg $1 Welcome $msgtags(display-name).key using Twitch Prime with the message: " $2- "!
}
}
if ($msgtags(msg-param-sub-plan).key == 1000) {
if (!$2-) {
msg $1 Welcome $msgtags(display-name).key $+ ! ( $+ $chr(36) $+ 4.99 $+ )
}
else {
msg $1 Welcome $msgtags(display-name).key with the message: " $2- "! ( $+ $chr(36) $+ 4.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 2000) {
if (!$2-) {
msg $1 Welcome $msgtags(display-name).key $+ ! ( $+ $chr(36) $+ 9.99 $+ )
}
else {
msg $1 Welcome $msgtags(display-name).key with the message: " $2- "! ( $+ $chr(36) $+ 9.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 3000) {
if (!$2-) {
msg $1 Welcome $msgtags(display-name).key $+ ! ( $+ $chr(36) $+ 24.99 $+ )
}
else {
msg $1 Welcome $msgtags(display-name).key with the message: " $2- "! ( $+ $chr(36) $+ 24.99 $+ )
}
}
}
}
else {
if ($msgtags(display-name).key == $null) {
alias capital-newsub return $upper($left($msgtags(login).key,1)) $+ $mid($msgtags(login).key,2-)
;display-name is empty, use login instead (Auto-capitalised the first letter)
if ($msgtags(msg-param-sub-plan).key == Prime) {
if (!$2-) {
msg $1 Welcome $capital-newsub using Twitch Prime!
}
else {
msg $1 Welcome $capital-newsub using Twitch Prime with the message: " $2- "!
}
}
if ($msgtags(msg-param-sub-plan).key == 1000) {
if (!$2-) {
msg $1 Welcome $capital-newsub $+ ! ( $+ $chr(36) $+ 4.99 $+ )
}
else {
msg $1 Welcome $capital-newsub with the message: " $2- "! ( $+ $chr(36) $+ 4.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 2000) {
if (!$2-) {
msg $1 Welcome $capital-newsub $+ ! ( $+ $chr(36) $+ 9.99 $+ )
}
else {
msg $1 Welcome $capital-newsub with the message: " $2- "! ( $+ $chr(36) $+ 9.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 3000) {
if (!$2-) {
msg $1 Welcome $capital-newsub $+ ! ( $+ $chr(36) $+ 24.99 $+ )
}
else {
msg $1 Welcome $capital-newsub with the message: " $2- "! ( $+ $chr(36) $+ 24.99 $+ )
}
}
}
else {
;display-name is localized name, use login name instead
if ($msgtags(msg-param-sub-plan).key == Prime) {
if (!$2-) {
msg $1 Welcome $msgtags(login).key using Twitch Prime!
}
else {
msg $1 Welcome $msgtags(login).key using Twitch Prime with the message: " $2- "!
}
}
if ($msgtags(msg-param-sub-plan).key == 1000) {
if (!$2-) {
msg $1 Welcome $msgtags(login).key $+ ! ( $+ $chr(36) $+ 4.99 $+ )
}
else {
msg $1 Welcome $msgtags(login).key with the message: " $2- "! ( $+ $chr(36) $+ 4.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 2000) {
if (!$2-) {
msg $1 Welcome $msgtags(login).key $+ ! ( $+ $chr(36) $+ 9.99 $+ )
}
else {
msg $1 Welcome $msgtags(login).key with the message: " $2- "! ( $+ $chr(36) $+ 9.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 3000) {
if (!$2-) {
msg $1 Welcome $msgtags(login).key $+ ! ( $+ $chr(36) $+ 24.99 $+ )
}
else {
msg $1 Welcome $msgtags(login).key with the message: " $2- "! ( $+ $chr(36) $+ 24.99 $+ )
}
}
}
}
}
;Resub
if ($msgtags(msg-id).key == resub) {
if ($regex($msgtags(display-name).key, /^[a-z\d_]+$/ig)) {
if ($msgtags(display-name).key != $null) {
if ($msgtags(msg-param-sub-plan).key == Prime) {
if (!$2-) {
msg $1 Welcome back $msgtags(display-name).key for $msgtags(msg-param-months).key months in a row using Twitch Prime!
}
else {
msg $1 Welcome back $msgtags(display-name).key for $msgtags(msg-param-months).key months in a row using Twitch Prime with the message: " $2- "!
}
}
if ($msgtags(msg-param-sub-plan).key == 1000) {
if (!$2-) {
msg $1 Welcome back $msgtags(display-name).key for $msgtags(msg-param-months).key months in a row! ( $+ $chr(36) $+ 4.99 $+ )
}
else {
msg $1 Welcome back $msgtags(display-name).key for $msgtags(msg-param-months).key months in a row with the message: " $2- "! ( $+ $chr(36) $+ 4.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 2000) {
if (!$2-) {
msg $1 Welcome back $msgtags(display-name).key for $msgtags(msg-param-months).key months in a row! ( $+ $chr(36) $+ 9.99 $+ )
}
else {
msg $1 Welcome back $msgtags(display-name).key for $msgtags(msg-param-months).key months in a row with the message: " $2- "! ( $+ $chr(36) $+ 9.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 3000) {
if (!$2-) {
msg $1 Welcome back $msgtags(display-name).key for $msgtags(msg-param-months).key months in a row! ( $+ $chr(36) $+ 24.99 $+ )
}
else {
msg $1 Welcome back $msgtags(display-name).key for $msgtags(msg-param-months).key months in a row with the message: " $2- "! ( $+ $chr(36) $+ 24.99 $+ )
}
}
}
}
else {
if ($msgtags(display-name).key == $null) {
alias capital-resub return $upper($left($msgtags(login).key,1)) $+ $mid($msgtags(login).key,2-)
;display-name is empty, use login instead (Auto-capitalised the first letter)
if ($msgtags(msg-param-sub-plan).key == Prime) {
if (!$2-) {
msg $1 Welcome back $capital-resub for $msgtags(msg-param-months).key months in a row using Twitch Prime!
}
else {
msg $1 Welcome back $capital-resub for $msgtags(msg-param-months).key months in a row using Twitch Prime with the message: " $2- "!
}
}
if ($msgtags(msg-param-sub-plan).key == 1000) {
if (!$2-) {
msg $1 Welcome back $capital-resub for $msgtags(msg-param-months).key months in a row! ( $+ $chr(36) $+ 4.99 $+ )
}
else {
msg $1 Welcome back $capital-resub for $msgtags(msg-param-months).key months in a row with the message: " $2- "! ( $+ $chr(36) $+ 4.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 2000) {
if (!$2-) {
msg $1 Welcome back $capital-resub for $msgtags(msg-param-months).key months in a row! ( $+ $chr(36) $+ 9.99 $+ )
}
else {
msg $1 Welcome back $capital-resub for $msgtags(msg-param-months).key months in a row with the message: " $2- "! ( $+ $chr(36) $+ 9.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 3000) {
if (!$2-) {
msg $1 Welcome back $capital-resub for $msgtags(msg-param-months).key months in a row! ( $+ $chr(36) $+ 24.99 $+ )
}
else {
msg $1 Welcome back $capital-resub for $msgtags(msg-param-months).key months in a row with the message: " $2- "! ( $+ $chr(36) $+ 24.99 $+ )
}
}
}
else {
;display-name is localized name, use login name instead
if ($msgtags(msg-param-sub-plan).key == Prime) {
if (!$2-) {
msg $1 Welcome back $msgtags(login).key for $msgtags(msg-param-months).key months in a row using Twitch Prime!
}
else {
msg $1 Welcome back $msgtags(login).key for $msgtags(msg-param-months).key months in a row using Twitch Prime with the message: " $2- "!
}
}
if ($msgtags(msg-param-sub-plan).key == 1000) {
if (!$2-) {
msg $1 Welcome back $msgtags(login).key for $msgtags(msg-param-months).key months in a row! ( $+ $chr(36) $+ 4.99 $+ )
}
else {
msg $1 Welcome back $msgtags(login).key for $msgtags(msg-param-months).key months in a row with the message: " $2- "! ( $+ $chr(36) $+ 4.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 2000) {
if (!$2-) {
msg $1 Welcome back $msgtags(login).key for $msgtags(msg-param-months).key months in a row! ( $+ $chr(36) $+ 9.99 $+ )
}
else {
msg $1 Welcome back $msgtags(login).key for $msgtags(msg-param-months).key months in a row with the message: " $2- "! ( $+ $chr(36) $+ 9.99 $+ )
}
}
if ($msgtags(msg-param-sub-plan).key == 3000) {
if (!$2-) {
msg $1 Welcome back $msgtags(login).key for $msgtags(msg-param-months).key months in a row! ( $+ $chr(36) $+ 24.99 $+ )
}
else {
msg $1 Welcome back $msgtags(login).key for $msgtags(msg-param-months).key months in a row with the message: " $2- "! ( $+ $chr(36) $+ 24.99 $+ )
}
}
}
}
}
}
}
Comments
0 B
|0 👍
/0 👎
0 B
|👍
/👎