dm_app.rb 364 B

1234567891011121314
  1. require './app/app_forms/app_form.rb'
  2. class NewApplication < ApplicationForm
  3. def self.process
  4. @process ||= Application.new('New App') do |event|
  5. # Check Reactions
  6. reactions = event.message.reactions
  7. if reactions[Emoji::PHONE]&.count.to_i > 1
  8. # Dump the user's key in the dm
  9. event.author.id.to_s
  10. end
  11. end
  12. end
  13. end