You are looking at a Wii Remote mounted on a robotically controlled swing. A second motor is used to trigger the bowling, by first Pressing the A button and left arrow, and then holding down the B button, swinging, and finally releasing the B button.
Here is a screenshot of the advanced programming required:
Mindstorms, RCX, and LEGO are trademarks of the LEGO Group. BattleBots is a trademark of BattleBots, inc. This site is in no way affiliated with The Lego Group or BattleBots, inc.