From 707ed2878b50cbfd0da5d3f3b546e538767340d1 Mon Sep 17 00:00:00 2001 From: "seejoshcode@gmail.com" Date: Thu, 12 Oct 2017 21:47:28 -0400 Subject: [PATCH 1/3] added a couple nouns --- app/data/nouns.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/data/nouns.js b/app/data/nouns.js index 209a7f3..a72f3d9 100644 --- a/app/data/nouns.js +++ b/app/data/nouns.js @@ -1,4 +1,6 @@ const nouns = [ + {value: "alchemy"}, + {value: "minstrel"}, {value: "Elves"}, {value: "Gargoyles"}, {value: "Ghoul"}, From aa5a3417db055ebcfd8c1d7955e614975065461a Mon Sep 17 00:00:00 2001 From: "seejoshcode@gmail.com" Date: Sun, 15 Oct 2017 13:40:35 -0400 Subject: [PATCH 2/3] added the noun chaos --- app/data/nouns.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/data/nouns.js b/app/data/nouns.js index a72f3d9..d7b1821 100644 --- a/app/data/nouns.js +++ b/app/data/nouns.js @@ -1,5 +1,6 @@ const nouns = [ {value: "alchemy"}, + {value: "chaos"}, {value: "minstrel"}, {value: "Elves"}, {value: "Gargoyles"}, From 7b99f9c15475da1de7502b39b8c3ef0948c20622 Mon Sep 17 00:00:00 2001 From: "seejoshcode@gmail.com" Date: Wed, 18 Oct 2017 20:49:52 -0400 Subject: [PATCH 3/3] added a tweet --- app/data/days.js | 12 ++++++++++++ app/data/tweets.js | 14 +++++++++++++- app/data/verbs.js | 1 + app/functions/buildTweet.js | 4 +++- 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 app/data/days.js diff --git a/app/data/days.js b/app/data/days.js new file mode 100644 index 0000000..ce05bae --- /dev/null +++ b/app/data/days.js @@ -0,0 +1,12 @@ +const days = [ + {value: "Monday"}, + {value: "Tuesday"}, + {value: "Wednesday"}, + {value: "Thursday"}, + {value: "Friday"}, + {value: "Saturday"}, + {value: "Sunday"} + +] + +module.exports = days diff --git a/app/data/tweets.js b/app/data/tweets.js index 4abcb16..38cec52 100644 --- a/app/data/tweets.js +++ b/app/data/tweets.js @@ -14,7 +14,11 @@ const tweets = [ }), { data: "[band] [venue]", - build: arr => `Catch ${arr[0]} playing at ${arr[1]}!`, + build: arr => `Catch ${arr[0]} playing at ${arr[1]}!` + }, + { + data: "[days] [band] [venue]", + build: arr => `This ${arr[0]}, come and see ${arr[1]} dropping their new sound at ${arr[2]}!` }, { data: "[band] [band] [venue]", @@ -50,6 +54,14 @@ const tweets = [ build: arr => `${arr[0]} and ${arr[1]} take the stage for the first time together!`, }, + { + data: "[adjective] [band] [venue]", + build: arr => `${arr[0]} ${arr[1]} hangout at ${arr[2]} !`, + }, + { + data: "[band]", + build: arr => `${arr[0]}'s new song is released!`, + }, ] module.exports = tweets diff --git a/app/data/verbs.js b/app/data/verbs.js index 00f71d3..8daf5bb 100644 --- a/app/data/verbs.js +++ b/app/data/verbs.js @@ -45,6 +45,7 @@ const verbs = [ {value: "ken"}, {value: "kill"}, {value: "learn"}, + {value: "write"}, {value: "observe"}, {value: "ponder"}, {value: "rend"}, diff --git a/app/functions/buildTweet.js b/app/functions/buildTweet.js index a839c11..df3df53 100644 --- a/app/functions/buildTweet.js +++ b/app/functions/buildTweet.js @@ -7,6 +7,7 @@ const nouns = require("../data/nouns") const tweets = require("../data/tweets") const bands = require("../data/bands") const venues = require("../data/venues") +const days = require("../data/days") // import functions const getRandomEntry = require("./getRandomEntry") @@ -44,5 +45,6 @@ const dataSwitch = { "[adjective]": adjectives, "[band]": buildComponent(bands), "[noun]": nouns, - "[venue]": buildComponent(venues) + "[venue]": buildComponent(venues), + "[days]": buildComponent(days) }