Skip to content

Commit

Permalink
Add random marker in a found car tweet
Browse files Browse the repository at this point in the history
  • Loading branch information
2m committed Apr 22, 2018
1 parent 44fd56d commit bb9ace8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/scala/Kabrioletas.scala
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class CabrioCheck extends Actor with ActorLogging {

twitter.createTweet(
status =
f"\uD83D\uDE95\uD83D\uDE95\uD83D\uDE95 Parked and ready for a new adventure$locationDescription. Pick me up! https://www.google.com/maps?q=${car.lat}%.6f,${car.lon}%.6f",
f"\uD83D\uDE95\uD83D\uDE95\uD83D\uDE95 Parked and ready for a new adventure$locationDescription. Pick me up! https://www.google.com/maps?q=${car.lat}%.6f,${car.lon}%.6f ($randomMarker)",
latitude = Some(car.lat.toLong),
longitude = Some(car.lon.toLong),
display_coordinates = true
Expand All @@ -158,14 +158,17 @@ class CabrioCheck extends Actor with ActorLogging {

def tweetAboutNoCar() = {
twitter.createTweet(status =
s"\uD83D\uDD1C\uD83D\uDD1C\uD83D\uDD1C I am on a ride right now. Will let you know when I am free! (${Random.alphanumeric.take(6).mkString})")
s"\uD83D\uDD1C\uD83D\uDD1C\uD83D\uDD1C I am on a ride right now. Will let you know when I am free! ($randomMarker)")
}

def tweetAboutSearch() = {
twitter.createTweet(status =
s"πŸ”ŽπŸ”ŽπŸ”Ž There has been no available car for quite some time now. Nevertheless, I keep on searching. Stay tuned! (${Random.alphanumeric.take(6).mkString})")
s"πŸ”ŽπŸ”ŽπŸ”Ž There has been no available car for quite some time now. Nevertheless, I keep on searching. Stay tuned! ($randomMarker)")
}

def randomMarker =
Random.alphanumeric.take(6).mkString

def resetLastTweetTimer() =
lastTweetAt = Instant.now
}
Expand Down

0 comments on commit bb9ace8

Please sign in to comment.