Module: Del

Defined in:
lib/del.rb,
lib/del/robot.rb,
lib/del/version.rb,
lib/del/connection.rb

Defined Under Namespace

Classes: Connection, Robot

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.startObject



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/del.rb', line 15

def self.start
  Dotenv.load(".env.local", Pathname.new(Dir.home).join(".delrc").to_s)

  del = Robot.new(configuration: {
    host: ENV.fetch("DEL_HOST"),
    jid: ENV.fetch("DEL_JID"),
    muc_domain: ENV.fetch("DEL_MUC_DOMAIN"),
    password: ENV.fetch("DEL_PASSWORD"),
  })
  del.run
end