Skip to content
This repository has been archived by the owner on Apr 11, 2020. It is now read-only.

Latest commit

 

History

History
81 lines (51 loc) · 2.54 KB

CHANGELOG.md

File metadata and controls

81 lines (51 loc) · 2.54 KB

Unreleased

0.4.7

Fixed

  • Bots added using numeric keys now work
  • Bots added before the server starts which raise errors when started should not longer take the server down

0.4.6

Added

  • New client method for accessing the underlying Slack ruby client; this is useful for getting the channels or users (e.g. client.channels or client.users).

Changes

  • Evaluate on_slack_event blocks against the bot instance, rather than the class.

0.4.5

Added

  • Add on_slack_event for adding low-level event callbacks like team_join or presence_changed

0.4.4

Added

  • Add new bot-private API method user_message?(data), which returns true if the message is some utterance from a user

Changes

  • Allow replying from the low-level on(:message) callback, although caution should be exercised when doing this (i.e. make sure you aren't replying to bot or other low-level API messages!)

0.4.3

Added

  • Add clear method to queues

Changes

  • Upgrate slack-ruby-client dependency to latest version

0.4.2

Changes

  • Re-use error raising from within Slack::Web::Api
  • Prevent bots with the same key as existing bots from being added (@keydunov)

0.4.1

Changes

  • Fixed detection of RTM-compatible messages

0.4.0

Added

  • Allow bots to send a 'typing' message
  • Messages will be sent via the Real-Team API if possible (not all message parameters are acceptable there)
  • Subsequent bot callbacks won't fire if an earlier one returns false
  • SlackBotServer::Bot now exposes bot_user_name, bot_user_id, team_name, and team_id methods
  • The logger can now be set via SlackBotServer.logger=
  • Access the underlying Slack client via the SlackBotServer::Bot#client method

Changes

  • Swapped internal API library from slack-api to slack-ruby-client
  • Improve internal bot logging API
  • Ensure rtm data is reloaded when reconnecting
  • Add missing/implicit requires to server.rb and bot.rb
  • Only listen for instructions on the queue if its non-nil
  • Fix bug where malformed bot key could crash when processing instructions
  • Allow SlackBotServer::RedisQueue.new to take a custom redis key; note that this has changed the argument format of the initialiser

0.3.0

Changes

  • The SlackBotServer::Server#on_new_proc has been renamed to Server#on_add
  • The add and add_bot methods on SlackBotServer::Server and SlackBotServer::RemoteControl control have been merged as add_bot
  • Multiple arguments may be passed via the add_bot method to the block given to SlackBotServer::on_add