Seeing as i can capture the Bits posted to a channel through @raw, I was wondering if i could use this to display a message in chat when someone donates Bits.
I’ve edited the code to capture and greet resubs with the new system, to possible put a response in chat with Cheers.
raw USERNOTICE:*:{
if ($msgtags(room-id).key == ROOM ID) {
if ($2- == $null) && (bits isin $msgtags) {
describe $1 $msgtags(display-name).key donated $msgtags(bits).key Bits SeemsGood
}
else {
describe $1 $msgtags(display-name).key donated $msgtags(bits).key Bits SeemsGood with the message " $2- " MVGame
}
}
}
However im probably doing it wrong as this will not give the required response in chat.
I was wondering if someone could help me out with this.
This will only work if they actually donate bits. Just typing “cheer10000” will not trigger it. If it WAS an actual bits donation, check to make sure the ROOM ID is correct.
Edit: I tested the code myself, and it works as expected.