Skip to content

Instantly share code, notes, and snippets.

@tohn
Created July 23, 2014 16:38
Embed
What would you like to do?
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