Class: Auth

Inherits:
Rubot::Core::Command show all
Defined in:
lib/template/commands/auth.rb

Instance Method Summary collapse

Methods inherited from Rubot::Core::Command

#initialize, #protected?, #run

Constructor Details

This class inherits a constructor from Rubot::Core::Command

Instance Method Details

#execute(server, message, options) ⇒ Object



2
3
4
5
# File 'lib/template/commands/auth.rb', line 2

def execute(server, message, options)
  return if message.body != 'sudo4me'
  @dispatcher.add_auth(message.from)
end