From a2acaf372dfe3497dabbd2ff8ac73d52e04f15dc Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Tue, 15 Sep 2015 20:08:48 +0000 Subject: [PATCH] Implement features in the adapter --- lib/lita/adapters/tox.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/lita/adapters/tox.rb b/lib/lita/adapters/tox.rb index deffaeb..768bcea 100644 --- a/lib/lita/adapters/tox.rb +++ b/lib/lita/adapters/tox.rb @@ -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