How do you give your pet a treat when you’re away from home? One man invented a machine that dispenses a dog treat when activated by certain tweets