2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-24 01:50:20 -04:00
|
|
|
module DiscourseNarrativeBot
|
|
|
|
class Magic8Ball
|
|
|
|
def self.generate_answer
|
|
|
|
I18n.t(
|
|
|
|
"discourse_narrative_bot.magic_8_ball.result",
|
|
|
|
result: I18n.t("discourse_narrative_bot.magic_8_ball.answers.#{rand(1..20)}"),
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|