If you want it to say different things in different channels, you are going to have to make some If-then-else statements (/help if then else)
$1 is the channel name the resub happens in so you will need something like:
if ($1 == #channel1) {
say something
}
elseif ($1 == #channel2) {
say something else
}
Also you still need to be requesting the CAPabilities from "your" original code:
on *:LOGON:*:{
raw CAP REQ :twitch.tv/membership
raw CAP REQ :twitch.tv/tags
raw CAP REQ :twitch.tv/commands
/debug @raw
}
This should be enough to get you started on learning how to code the script the way you want it.