Slapbot for Slack: Good Old Slap (/slap) Available Again!

We started using Slack shortly after it was released, and now must say we’re not surprised to find out that so many people use it on daily basis too. (As data says, there are 1.7 million Slack users at this moment.) Namely, it serves us awesomely as centralized hub for discussions, code deployment and tracking our Trello activities, e.g. Notifications are also pretty handy, as well as search functionality, and it works great on mobile.
All in all, we have to say we like it equally as online conference room as well as virtual water cooler. Giphy function is especially appreciated in both cases. Still, we missed oldy but goody IRC* times when you could just type in:

/slap Josh

…and as a result Josh would get a proper slap!

*link referral meant for millennials ;)

Update: Slapbot now supports user tagging and custom emoji codes and can include random “banter”. For example: /slap @josh :hot_pepper:, will tag @josh and slap him with a hot pepper. Ouch!

So, we weren’t lazy and decided to recreate these joyful moments in Slack:

First Step First: Installation

Start with these:

Clone the repo, e.g. git clone https://github.com/spfr/slapbot.git

Run npm install

Run node server.js

OK, great job! But, this actually is not that useful since you will need to host it somewhere in order to configure Slack to use it.
We recommend running the server with PM2 and frontend it with Nginx or similar.

Read next

Software engineering today is all about building better, [value-driven digital products](https://spicefactory.co/blog/2017/04/27/building-user-value-into-digital-products/) more efficiently. This 'mantra of efficiency' is especially present in the...