Skip to content

Instantly share code, notes, and snippets.

@tohn
Created July 23, 2014 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tohn/f6ac528f2854b49b3f0b to your computer and use it in GitHub Desktop.
Save tohn/f6ac528f2854b49b3f0b to your computer and use it in GitHub Desktop.
Gender Rolls
#!/bin/bash
# inspired by http://www.robot-hugs.com/gender-rolls/
# required: roll (http://matteocorti.ch/software/roll.html)
# https://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script
command -v roll >/dev/null 2>&1 || { echo >&2 "I require roll but it's not installed. Aborting."; exit 1; }
# http://tldp.org/LDP/abs/html/arrays.html
# I use Art-Leather instead of Leather (the vegan version) ;)
eight=(Agender Genderqueer Trans Genderfluid Cis Non-binary Questioning Bigender)
ten=(Dapper Femmetype Twinky Sophisticate Androgenous Art-Leather Flexible Soft Queerdo Nonconforming)
twelve=(Princex Dragon Beefcake Shortcake Dudebro Gentleperson Cumberbatch Butch Bear Dandy Otter Queen)
echo "Hello, ${eight[$(roll 1d8)-1]} ${ten[$(roll 1d10)-1]} ${twelve[$(roll 1d12)-1]}! :)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment