changed '<<' to '+=' to support frozen strings

master
s00ner 2024-07-15 14:25:33 -04:00
parent 1b1df5dd41
commit 49f0ff3904
1 changed files with 4 additions and 4 deletions

8
bot.rb
View File

@ -8,10 +8,10 @@ require 'rufus-scheduler'
def random_quote(quotes) def random_quote(quotes)
entry = quotes.keys.sample entry = quotes.keys.sample
quote = "**Quote of the Day**\n" quote = "**Quote of the Day**\n"
quote << "From the #{quotes[entry][:tech]}: #{entry}\n" quote += "From the #{quotes[entry][:tech]}: #{entry}\n"
quote << '```' quote += '```'
quote << quotes[entry][:quote] quote += quotes[entry][:quote]
quote << '```' quote += '```'
end end
# map quote types # map quote types