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
config :savedata_filename, type: String
config :status, type: String
def initialize(robot)
super
@ -29,6 +30,9 @@ module Lita
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.friend_add_norequest(key)
end