changed '<<' to '+=' to support frozen strings
parent
1b1df5dd41
commit
49f0ff3904
8
bot.rb
8
bot.rb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue