FEATURE: Send a message to new TL2 users and point them to the advanced tutorial (#8335)

* FEATURE: Send a message to new TL2 users and point them to the advanced tutorial

* DEV: Use a method to find the discobot user
This commit is contained in:
Roman Rizzi
2019-11-13 18:31:49 -03:00
committed by GitHub
parent a4b89f8187
commit c63e84dc62
11 changed files with 69 additions and 8 deletions

View File

@ -18,7 +18,7 @@ module DiscourseNarrativeBot
end
@date = I18n.l(date, format: :date_only)
@discobot_user = User.find(-2)
@discobot_user = ::DiscourseNarrativeBot::Base.new.discobot_user
end
def new_user_track