class BubBot::Slack::Client
Just a simple wrapper around a slack connection. Call .instance on this, then call anything you'd normally call on a Slack Client
on object on this instead. Eg `Client.instance.chat_postMessage`.
Public Instance Methods
client()
click to toggle source
# File lib/bub_bot/slack/client.rb, line 12 def client @client ||= Slack::Web::Client.new(token: BubBot.configuration.bot_oauth_token) end
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/bub_bot/slack/client.rb, line 8 def method_missing(method, *args, &block) client.respond_to?(method) ? client.public_send(method, *args, &block) : super end