From 31b5f5b9e71acebe02facd2039d25111004c0f1d Mon Sep 17 00:00:00 2001 From: Vat Raghavan Date: Wed, 7 Apr 2021 11:10:11 -0700 Subject: [PATCH 1/2] closes StoneCypher/fsl#48 --- src/machines/should_you_use_butter.fsl | 141 +++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 src/machines/should_you_use_butter.fsl diff --git a/src/machines/should_you_use_butter.fsl b/src/machines/should_you_use_butter.fsl new file mode 100644 index 00000000..7371c91f --- /dev/null +++ b/src/machines/should_you_use_butter.fsl @@ -0,0 +1,141 @@ +machine_name : "Should you use twitter?"; +machine_author : "MachinShin "; +machine_license : MIT; +machine_comment : "#madewithfsl"; +machine_language : en; +machine_version : 1.0.0; +fsl_version : 1.0.0; + +start_states : [Start]; +end_states : ["You can keep your Twitter account" + "Get off Twitter and seek help" + "Sorry Twitter just isn't for you" + "Get off Twitter" + "Maybe you should stick to Facebook"]; + +flow: down; + +Start -> "Is your Twitter for personal or business use?"; +"Is your Twitter for personal or business use?" 'Personal' + -> "Do you have a habit of revealing intimate personal details?"; +"Is your Twitter for personal or business use?" 'Business' + -> "Are you using Twitter to communicate with customers and send brand updates?"; +"Is your Twitter for personal or business use?" 'My business is personal' + -> "Do you distinguish your business account from your personal account?"; + +"Do you have a habit of revealing intimate personal details?" 'No, I have a pretty good ability to self control' + -> "Are a majority of your tweets interesting, funny, or thought-provoking?"; + +"Do you have a habit of revealing intimate personal details?" 'Only when I have had a little took much to drink' + -> "Does your boss follow you?"; + +"Does your boss follow you?" 'Yes' + -> "Get off Twitter"; +"Does your boss follow you?" 'No' + -> "Are you just using Twitter to stalk celebrites?" -> "Get off Twitter and seek help"; + +"Are a majority of your tweets interesting, funny, or thought-provoking?" 'No, they are mostly pics of my lunch or my cat' + -> "Are you a celebrity"; + +"Are a majority of your tweets interesting, funny, or thought-provoking?" 'Yes' + -> "Are you capable of keeping your insights to 140 characters or fewer?"; + +"Are you a celebrity" 'No' + -> "Maybe you should stick to Facebook"; +"Are you a celebrity" 'Yes' + -> "You can keep your Twitter account"; + +"Do you distinguish your business account from your personal account?" 'No, of course not' + -> "Get off Twitter"; + +"Do you distinguish your business account from your personal account?" 'Yes' + -> "Are you using Twitter to communicate with customers and send brand updates?"; + +"You can keep your Twitter account" <- + 'Yes' "Do you like to know what is going on in the world 5-6 minutes before any world news outlet?"; +"You can keep your Twitter account" <- 'Yes' "Are a majority of your tweets related to your business or industry?"; + +"Do you like to know what is going on in the world 5-6 minutes before any world news outlet?" 'No' + -> "Sorry Twitter just isn't for you"; +"Are a majority of your tweets related to your business or industry?" 'No' + -> "Sorry Twitter just isn't for you"; + +"Do you only keep your Twitter account for the rush you feel when your tweet is retweeted?" 'Yes' + -> "Really?"; + +"Really?" 'Yes' + -> "Get off Twitter and seek help"; +"Really?" 'No' + -> "Do you only keep your Twitter account for the rush you feel when your tweet is retweeted?"; + +"Are you capable of keeping your insights to 140 characters or fewer?" + -> "Do you only keep your twitter account for the rush you feel when your tweet is retweeted?"; + + +"Get off Twitter" <- 'Yeah you caught me' "Wait - Are you spam or a bot?"; + "Wait - Are you spam or a bot?" 'No' -> "How often do you tweet?"; + "Wait are you spam or a bot?" <- 'Yes' "You understand what Twitter is right?"; + + "How often do you tweet?" 'Hardly ever' + -> "Are you just using Twitter to stalk celebrites?"; + "How often do you tweet?" '15 times a month' + -> "Do you only keep your Twitter account for the rush you feel when your tweet is retweeted?"; + "How often do you tweet?" 'Almost everyday' + -> "Are the majority of your tweets related to your business or industry?"; + + + +//css for states + +state "Really?": { + shape: circle; + background-color: black; + text-color: white; +}; + +state "Maybe you should stick to Facebook": { + shape: circle; + background-color: skyblue; + text-color: white; +}; + + +state "Get off Twitter": { + shape: circle; + background-color: skyblue; + text-color: white; +}; + + +state "Get off Twitter and seek help": { + shape: circle; + background-color: skyblue; + text-color: white; +}; + +state "You can keep your Twitter account": { + shape: circle; + background-color: skyblue; + text-color: white; +}; + +state "Sorry Twitter just isn't for you": { + shape: circle; + background-color: skyblue; + text-color: white; +}; + +state "Does your boss follow you?" : { + shape: circle; + background-color: purple; + text-color: white; +}; + +state Start : { + background-color : limegreen; + text-color : white; + shape : circle; + linestyle : dashed; +}; + + From c7da077acbca0d2b071125a334a244f0b7a1c43c Mon Sep 17 00:00:00 2001 From: Vat Raghavan Date: Wed, 7 Apr 2021 11:59:01 -0700 Subject: [PATCH 2/2] CR1 --- ..._butter.fsl => should_you_use_twitter.fsl} | 73 +++++++++++-------- 1 file changed, 42 insertions(+), 31 deletions(-) rename src/machines/{should_you_use_butter.fsl => should_you_use_twitter.fsl} (51%) diff --git a/src/machines/should_you_use_butter.fsl b/src/machines/should_you_use_twitter.fsl similarity index 51% rename from src/machines/should_you_use_butter.fsl rename to src/machines/should_you_use_twitter.fsl index 7371c91f..568c4b46 100644 --- a/src/machines/should_you_use_butter.fsl +++ b/src/machines/should_you_use_twitter.fsl @@ -13,18 +13,18 @@ end_states : ["You can keep your Twitter account" "Get off Twitter" "Maybe you should stick to Facebook"]; -flow: down; +flow: right; Start -> "Is your Twitter for personal or business use?"; "Is your Twitter for personal or business use?" 'Personal' -> "Do you have a habit of revealing intimate personal details?"; "Is your Twitter for personal or business use?" 'Business' - -> "Are you using Twitter to communicate with customers and send brand updates?"; + -> "Are you using Twitter to communicate\n with customers and send brand updates?"; "Is your Twitter for personal or business use?" 'My business is personal' - -> "Do you distinguish your business account from your personal account?"; + -> "Do you distinguish your business account\n from your personal account?"; "Do you have a habit of revealing intimate personal details?" 'No, I have a pretty good ability to self control' - -> "Are a majority of your tweets interesting, funny, or thought-provoking?"; + -> "Are a majority of your tweets interesting,\n funny, or thought-provoking?"; "Do you have a habit of revealing intimate personal details?" 'Only when I have had a little took much to drink' -> "Does your boss follow you?"; @@ -34,107 +34,118 @@ Start -> "Is your Twitter for personal or business use?"; "Does your boss follow you?" 'No' -> "Are you just using Twitter to stalk celebrites?" -> "Get off Twitter and seek help"; -"Are a majority of your tweets interesting, funny, or thought-provoking?" 'No, they are mostly pics of my lunch or my cat' +"Are a majority of your tweets interesting,\n funny, or thought-provoking?" 'No, they are mostly pics of my lunch or my cat' -> "Are you a celebrity"; -"Are a majority of your tweets interesting, funny, or thought-provoking?" 'Yes' - -> "Are you capable of keeping your insights to 140 characters or fewer?"; +"Are a majority of your tweets interesting,\n funny, or thought-provoking?" 'Yes' + -> "Are you capable of keeping your insights\n to 140 characters or fewer?"; "Are you a celebrity" 'No' -> "Maybe you should stick to Facebook"; "Are you a celebrity" 'Yes' -> "You can keep your Twitter account"; -"Do you distinguish your business account from your personal account?" 'No, of course not' +"Do you distinguish your business account\n from your personal account?" 'No, of course not' -> "Get off Twitter"; -"Do you distinguish your business account from your personal account?" 'Yes' - -> "Are you using Twitter to communicate with customers and send brand updates?"; +"Do you distinguish your business account\n from your personal account?" 'Yes' + -> "Are you using Twitter to communicate\n with customers and send brand updates?"; + +"Are you using Twitter to communicate\n with customers and send brand updates?" 'No, not exactly' + -> "You understand what Twitter is, right?"; + +"Are you using Twitter to communicate\n with customers and send brand updates?" 'Yes' + -> "Do a majority of your clients or customers remember the good old days of the Coolidge Administration?"; + +"Do a majority of your clients or customers remember the good old days of the Coolidge Administration?" 'No' + -> "How often do you tweet?"; + +"Do a majority of your clients or customers remember the good old days of the Coolidge Administration?" 'Yes, and their first zeppelin ride' + -> "Sorry Twitter just isn't for you"; "You can keep your Twitter account" <- - 'Yes' "Do you like to know what is going on in the world 5-6 minutes before any world news outlet?"; -"You can keep your Twitter account" <- 'Yes' "Are a majority of your tweets related to your business or industry?"; + 'Yes' "Do you like to know what is going on in the world\n 5-6 minutes before any world news outlet?"; +"You can keep your Twitter account" <- 'Yes' "Are a majority of your tweets\n related to your business or industry?"; -"Do you like to know what is going on in the world 5-6 minutes before any world news outlet?" 'No' +"Do you like to know what is going on in the world\n 5-6 minutes before any world news outlet?" 'No' -> "Sorry Twitter just isn't for you"; -"Are a majority of your tweets related to your business or industry?" 'No' +"Are a majority of your tweets related\n to your business or industry?" 'No' -> "Sorry Twitter just isn't for you"; -"Do you only keep your Twitter account for the rush you feel when your tweet is retweeted?" 'Yes' +"Do you only keep your twitter account\n for the rush you feel when your tweet is retweeted?" 'Yes' -> "Really?"; "Really?" 'Yes' -> "Get off Twitter and seek help"; "Really?" 'No' - -> "Do you only keep your Twitter account for the rush you feel when your tweet is retweeted?"; + -> "Do you only keep your twitter account\n for the rush you feel when your tweet is retweeted?"; -"Are you capable of keeping your insights to 140 characters or fewer?" - -> "Do you only keep your twitter account for the rush you feel when your tweet is retweeted?"; +"Are you capable of keeping your insights\n to 140 characters or fewer?" + -> "Do you only keep your twitter account\n for the rush you feel when your tweet is retweeted?"; "Get off Twitter" <- 'Yeah you caught me' "Wait - Are you spam or a bot?"; "Wait - Are you spam or a bot?" 'No' -> "How often do you tweet?"; - "Wait are you spam or a bot?" <- 'Yes' "You understand what Twitter is right?"; + "Wait - Are you spam or a bot?" <- 'Yes' "You understand what Twitter is, right?"; "How often do you tweet?" 'Hardly ever' -> "Are you just using Twitter to stalk celebrites?"; "How often do you tweet?" '15 times a month' - -> "Do you only keep your Twitter account for the rush you feel when your tweet is retweeted?"; + -> "Do you only keep your twitter account\n for the rush you feel when your tweet is retweeted?"; "How often do you tweet?" 'Almost everyday' - -> "Are the majority of your tweets related to your business or industry?"; + -> "Are a majority of your tweets\n related to your business or industry?"; //css for states state "Really?": { - shape: circle; + shape: octagon; background-color: black; text-color: white; }; state "Maybe you should stick to Facebook": { - shape: circle; + shape: octagon; background-color: skyblue; text-color: white; }; state "Get off Twitter": { - shape: circle; + shape: octagon; background-color: skyblue; text-color: white; }; state "Get off Twitter and seek help": { - shape: circle; + shape: octagon; background-color: skyblue; text-color: white; }; state "You can keep your Twitter account": { - shape: circle; + shape: octagon; background-color: skyblue; text-color: white; }; state "Sorry Twitter just isn't for you": { - shape: circle; + shape: octagon; background-color: skyblue; text-color: white; }; state "Does your boss follow you?" : { - shape: circle; - background-color: purple; - text-color: white; + shape: octagon; + background-color: yellow; }; state Start : { background-color : limegreen; text-color : white; - shape : circle; + shape : octagon; linestyle : dashed; };