Ruboty for ruby-jp slack workspace.
$ bundle install
$ REDIS_URL=redis://localhost:6379/ RUBOTY_CLI=1 bundle exec ruby main.rb
> ruboty ping
pongIf you have docker environment, also can development by run below command
$ docker compose build
$ docker compose run --rm ruboty
> ruboty ping
pongBug reports and pull requests are welcome on GitHub at https://github.com/ruby-jp/ruboty-ruby-jp. 日本語でもokです
- Open https://api.slack.com/apps and create a new app with "From an app manifest" using slack-app-manifest.yml (or paste the manifest into an existing app's "App Manifest" page).
- In "Basic Information" > "App-Level Tokens", generate a token with the
connections:writescope. This isSLACK_APP_TOKEN(xapp-...), used for Socket Mode. - Install the app to the workspace and copy the "Bot User OAuth Token". This is
SLACK_TOKEN(xoxb-...). - Invite the bot to the channels it should watch and post to, e.g.
#emojiand#new_channel.
ruboty-ruby-jp is running on Heroku. It requires the following environment variables.
REDIS_URLSLACK_APP_TOKENSLACK_AUTO_RECONNECT=1SLACK_TOKENYAHOO_JAPAN_APP_ID
The following are optional.
SLACK_EMOJI_CHANGED_CHANNEL(default:#emoji)SLACK_EMOJI_IGNORE_REMOVED(set to skip removed-emoji notifications)SLACK_CHANNEL_CREATED_NOTIFY_CHANNEL(default:#new_channel)
These codes are licensed under CC0.
