Replies: 5 comments
-
Hi! lovesay is intended to display a quote for each day of the month, so it looks like it's throwing an error since it's trying to find a quote for 27th day and there aren't any since your file only has two quotes. Regardless, it should've been handled on my end. I've pushed out a hot fix where it should print out an empty heart if there is no quote for the current day, but I'll look into a more elegant solution soon enough :) |
Beta Was this translation helpful? Give feedback.
-
Oh interesting, but why not default to a random quote? |
Beta Was this translation helpful? Give feedback.
-
I certainly thought of that at one point, I just figured printing out an empty heart was the easiest way to let the users know something was wrong. but perhaps making the quote an error message letting the user know what to fix would be a better idea? |
Beta Was this translation helpful? Give feedback.
-
I've pushed out an update to print "No quote found for today, here's a hug :)" if there is no quote for the current day. Not having a quotes file still prints out an empty heart, but with the new update, lovesay can also print out on-demand messages. For example: lovesay "hello world" prints out: |
Beta Was this translation helpful? Give feedback.
-
closing this since this issue has been resolved, I'll be moving this over to discussions if there are any recommendations on how to handle edge cases :) |
Beta Was this translation helpful? Give feedback.
-
Problem
I installed
lovesay
viapip3
as specified in the README, but when I tried to run it I got this errorI created the
$HOME/.config/lovesay/quotes
file and have two quotes in itSystem Info
Beta Was this translation helpful? Give feedback.
All reactions