jpgohlke / twitch-chat-filter

58 stars 37 forks source link

Filter touch screen coordinates #140

Closed Zero3K closed 10 years ago

Zero3K commented 10 years ago

It would be nice if it could filter them.

rcmaehl commented 10 years ago

Shouldn't be too hard.

jpgohlke commented 10 years ago

I'll look at this tonight. Haven't been on the stream for awhile, so I'm not sure what the format of the inputs are. Can't watch the stream at work, though.

hugomg commented 10 years ago

Looks like the format for touchscreen inputs is a pair of numbers separated by a comma. Some examples from the stream right now:

186,19
217,157

I also saw this guide in the TPP subreddit:

http://i.imgur.com/k0PuEO2.png

http://www.reddit.com/r/twitchplayspokemon/comments/246cdj/an_early_quick_rough_guide_to_using_the/

graulund commented 10 years ago

Yep. Literally /^([0-9]+),([0-9]+)$/, or /^([0-9]{1,3}),([0-9]{1,3})$/ if you want to be restrictive.

rcmaehl commented 10 years ago

I think the filter should go with /^([0-9]+),([0-9]+)$/ because you'll be having fools spam 9001,9001

jpgohlke commented 10 years ago

Agreed on using the less restrictive version, in order to catch spam. I'm thinking it probably makes the most sense to incorporate this directly into the "Emulator Commands" filter rather than having it be separate. I'll make the change this afternoon when I can test it on streams.

jpgohlke commented 10 years ago

Implemented and pushed out.

Zero3K commented 10 years ago

Hmm, what about also filtering ones that include spaces in them?

jpgohlke commented 10 years ago

Done in PR #146