Archived
1
0
Fork 0

Implement features in the adapter

This commit is contained in:
Braiden Vasco 2015-09-15 20:08:48 +00:00
parent c81a798a9f
commit a2acaf372d

View file

@ -13,6 +13,7 @@ module Lita
# #
class Tox < Adapter class Tox < Adapter
config :savedata_filename, type: String config :savedata_filename, type: String
config :status, type: String
def initialize(robot) def initialize(robot)
super super
@ -29,6 +30,9 @@ module Lita
log.info("ID: #{@tox.id}") log.info("ID: #{@tox.id}")
@tox.name = robot.name if robot.name
@tox.status_message = config.status if config.status
@tox.on_friend_request do |key| @tox.on_friend_request do |key|
@tox.friend_add_norequest(key) @tox.friend_add_norequest(key)
end end