API for text based RPG in bash