Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a couple nouns #47

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/data/days.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const days = [
{value: "Monday"},
{value: "Tuesday"},
{value: "Wednesday"},
{value: "Thursday"},
{value: "Friday"},
{value: "Saturday"},
{value: "Sunday"}

]

module.exports = days
3 changes: 3 additions & 0 deletions app/data/nouns.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const nouns = [
{value: "alchemy"},
{value: "chaos"},
{value: "minstrel"},
{value: "Elves"},
{value: "Gargoyles"},
{value: "Ghoul"},
Expand Down
14 changes: 13 additions & 1 deletion app/data/tweets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]",
Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions app/data/verbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const verbs = [
{value: "ken"},
{value: "kill"},
{value: "learn"},
{value: "write"},
{value: "observe"},
{value: "ponder"},
{value: "rend"},
Expand Down
4 changes: 3 additions & 1 deletion app/functions/buildTweet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -44,5 +45,6 @@ const dataSwitch = {
"[adjective]": adjectives,
"[band]": buildComponent(bands),
"[noun]": nouns,
"[venue]": buildComponent(venues)
"[venue]": buildComponent(venues),
"[days]": buildComponent(days)
}