Well, I'm sure you can program a little something in Python using a Raspberry Pi, or Arduino if that's possible to run a motor whenever indicated. The motor can pull the chain inside and therefore flushing the toilet. Then you could patent/distribute your invention and make millions, go into retirement, move to Belize, kill your neighbor, then get caught by police several days later while trying to hop borders.
Forum group project?
I'm in. Who wants to be the neighbor?
I'm going to go practice java..
I will take that as "I'll volunteer to be the neighbor"