Slack(Socket Mode) adapter for ruboty. This gem is experimental.
This is fork of rosylilly/ruboty-slack_rtm, adapted new slack API(Socket Mode) instead of old API(RTM).
SLACK_APP_TOKEN
: Slack App-Level token for Socket Mode. get one on https://api.slack.com/apis/connections/socket#tokenSLACK_BOT_TOKEN
: Slack OAuth token for using Web API. get one on https://api.slack.com/web#basicsSLACK_EXPOSE_CHANNEL_NAME
: if this set to 1,message.to
will be channel name instead of id (optional)SLACK_IGNORE_GENERAL
: if this set to 1, bot ignores all messages on #general channel (optional)SLACK_GENERAL_NAME
: Set general channel name if your Slack changes general name (optional)SLACK_AUTO_RECONNECT
: Enable auto reconnect if websocket disconnected by Slack (optional)
To install this gem onto your local machine, run bundle exec rake install
.
To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
For instant confirmation, sample
directory may be useful with below steps.
You will need a slack workspace and slack app tokens. you can use sample/slack_app_manifest.yml
to create a slack app.
cd sample
cp sample.env .env # and fill your slack_app tokens
docker compose run --rm ruboty
Bug reports and pull requests are welcome on GitHub at https://github.com/reproio/ruboty-slack_socket_mode.