Skip to content

Commit

Permalink
Merge pull request #7 from 2m/wip-random-in-found-car-2m
Browse files Browse the repository at this point in the history
Add random marker in a found car tweet
  • Loading branch information
2m authored Apr 22, 2018
2 parents 44fd56d + bb9ace8 commit c443ea3
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 c443ea3

Please sign in to comment.