mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
10 lines
250 B
Ruby
10 lines
250 B
Ruby
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
|