Skip to content

Instantly share code, notes, and snippets.

@darkone23
Created March 23, 2014 18:08
Show Gist options
  • Save darkone23/9727062 to your computer and use it in GitHub Desktop.
Save darkone23/9727062 to your computer and use it in GitHub Desktop.
import random
faces = [
### .. some faces
]
@hook.command
def faces(inp):
".faces <n> -- some faces"
f = []
facelimit = len(facelist) - 1
for x in xrange(0, int(inp)):
face = facelist[random.randint(0, facelimit)]
f += [face]
return " ".join(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment