title: After a while getting multiple answers from slack bot using slack-ruby-bot gem
body: <p>My slack bot starts answering multiple times after a while.
  Restarting the slack bot container resolves the issue temporarily.</p>
  
  <p>We have integrated a slack bot with our ruby app using the <strong>slack-ruby-bot</strong> gem. </p>
  
  <p>See the code for a simple example of how the commands are implemented. In this command whenever a user writes to say 'any_phrase' the bot answers with that exact 'any_phrase'.
  This works fine but after a while, the bot starts answering multiple times. </p>
  
  <p>This was implemented with a <strong><em>docker container</em></strong> so I added logs to verify We get responses from the same machine, not from another container listening. And it's coming from the same IP.
  Also, After I restart my container it resolves the issue which also indicates it's coming from the same machine.</p>
  
  <pre><code>class Say &lt; SlackRubyBot::Commands::Base
    command 'say' do |client, data, match|
      client.say(channel: data.channel,text: match['expression'])
    end
  end
  </code></pre>
  
  <p>The bot should only answer once at all times. There are other commands that affect the app's data and we do not want it to run multiple times.</p>