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

jillguyonnet/slack_ruby_bot_minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Slack Ruby bot

The purpose of this repository is to provide the minimal code necessary to reproduce a bug where a bot built with Slack-Ruby-Bot where the bot responds more than once to text commands.

Steps to reproduce

  1. Create a new Slack app with a bot user. Install the app to your Slack workspace.

  2. Run the app passing the oauth token of the bot:

git clone [email protected]:jillguyonnet/slack_ruby_bot_minimal.git
cd slack_ruby_bot_minimal
bundle install
bundle exec rake db:setup
SLACK_API_TOKEN=<both_oauth_token> foreman start
  1. In Slack, check that the app is running as expected by issuing a few commands:
  • hi: built in with slack-ruby-bot
  • show: print a list of items
  • add: add an item to the list
  • clear: clear the list

That should work normally, i.e. only one response per issued command.

  1. Let the app running for ~1 hour without any interaction.

  2. Test the various commands again. More often than not, an issue will appear where the bot responds twice to issued commands.

About

A minimal Slack bot built with https://github.com/slack-ruby/slack-ruby-bot with an sqlite3 database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages