TROLL EM' Before you set up the command read this!
Place a command block and set it to repeat
Put a lever on the block(shift and place) and activate it
MAY CAUSE SOOOOOOOOOOOOOOO MUCH LAG AND DESTROY YOUR COMPUTER SO MOVE FAR AWAY
Type in the chat /gamerule doCommandBlockOutput false (use tab if you are lazy)
enjoy!