mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 16:28:21 +00:00
scroll up!
This commit is contained in:
parent
742dbcb498
commit
14849fb675
3 changed files with 13 additions and 0 deletions
9
app/jobs/tutorial/scroll_up_reminder_job.rb
Normal file
9
app/jobs/tutorial/scroll_up_reminder_job.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class Tutorial::ScrollUpReminderJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(identity)
|
||||
return if identity.promote_click_count > 0
|
||||
|
||||
RalseiEngine.send_message(identity, "tutorial/scroll_up_reminder")
|
||||
end
|
||||
end
|
||||
|
|
@ -7,6 +7,8 @@ module RalseiEngine
|
|||
scenario&.before_first_message
|
||||
first_step = scenario&.first_step || :intro
|
||||
send_step(identity, first_step)
|
||||
|
||||
Tutorial::ScrollUpReminderJob.set(wait: 25.seconds).perform_later(identity)
|
||||
end
|
||||
|
||||
def handle_tutorial_agree(identity)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
section "_psst_", markdown: true
|
||||
header "Don't listen to Slackbot! Scroll up!"
|
||||
Loading…
Add table
Reference in a new issue