Go into the channel you want to use it from and type /invite where BOTNAME is what you named the bot during the integration setup step above. Once the bot is connected to the server, you'll want to invite it to some channels so you can use it. If you've got the right Slack API key, you should see a line on the terminal mentioning which Slack team you've connected to. Do it via a background process or a utility like screen or tmux to leave it running. If that succeeds, all you need to do is run bundle exec ruby app.rb to start the bot. Once you have that, run bundle install to get all the necessary gems installed. You should have a fairly modern ruby and the Bundler gem installed. Plug all the values you've obtained into the. For the last two tokens please consult the documentation of this imgur gem unless you have a preferred way to get the values yourself. The imgur variables are slightly more complicated you can obtain the first two values by accessing the developer section of the imgur website and creating a new application. Mark down the name of the bot when you create it you'll be using it later to evoke the bot in your Slack channels.
The Slack API token is obtained by creating a new 'bot' under the Slack admin integrations menu.