I dropped in the ability for one of my IRC bots to execute Python and PHP code in restricted environments and it’s ridiculously fuuuuuuun! That sounds awfully nerdy, and it is, but it’s still fun. =)
Fun things you could do:
- Pick a random winner!
!python import random; print "%s is the winner!" % random.choice(ctx.names) - Print rainbow text!
!php $colors = array(4, 7, 8, 9, 12, 13); $s = "RAINBOW"; for ($i = 0; $i < strlen($s); $i++) { printf("\x03%d%s", $colors[$i % count($colors)], $s[$i]); }
I'm on Twitter!