Revert "Convert emoji keywords in bot narrative to use native characters."

This reverts commit bfc4f15b935416f682b29c2305e094ff70de0873.

* Transifex doesn't like those unicode strings.
This commit is contained in:
Guo Xiang Tan
2017-07-14 11:27:10 +09:00
parent 3ebd8838af
commit f1141ee4f6
2 changed files with 46 additions and 46 deletions

View File

@ -113,7 +113,7 @@ module DiscourseNarrativeBot
}
}
SEARCH_ANSWER = [':herb:', '🌿'].freeze.each(&:freeze)
SEARCH_ANSWER = ':herb:'.freeze
def self.reset_trigger
I18n.t('discourse_narrative_bot.new_user_narrative.reset_trigger')
@ -485,7 +485,7 @@ module DiscourseNarrativeBot
post_topic_id = @post.topic_id
return unless valid_topic?(post_topic_id)
if @post.raw.match(/#{SEARCH_ANSWER.join('|')}/)
if @post.raw.match(/#{SEARCH_ANSWER}/)
fake_delay
reply_to(@post, I18n.t("#{I18N_KEY}.search.reply", i18n_post_args(search_url: url_helpers(:search_url))))
else