slack-stranger-bot

Meet strangers in your Slack Workspace, explore new people. Fully anonymous and secure, bot doesn't store any data.

MIT License

Stars
11

Slack Stranger Bot

Meet strangers in your Slack Workspace, explore new people. Fully anonymous and secure, bot doesn't store any data.

How it works?

  • User opens a conversation with Stranger Bot.
  • Types hi.
  • Stranger Bot finds random active user who doesn't participate currently in another Stranger conversation.
  • Bot will act as a proxy between two connected users. Never mentioning who sends a message.
  • Any user can type bye to finish the conversation, and type hi again to start a new random one.

Anonymous messages to the channel

You can send private message to the Stranger Bot started with channel name to send message to the channel.

  • Add Stranger Bot to the channel.
  • Send #channel-name message to the Bot in private conversation.

Run Stranger Bot

  1. Create an app in Slack
  2. Add chat:write OAuth scope
  3. Toggle Allow users to send Slash commands and messages from the messages tab
  4. Install in your Workspace
  5. Retrieve Bot User OAuth Token
docker build -t slack-stranger-bot .
docker run slack-stranger-bot -e SLACK_TOKEN=<token>

Run Unit Tests

go test -v ./...

Coversation example

> **alex.pliutau** [10:29 PM]
>
> hi
>
> **Stranger Bot** [10:29 PM]
>
> Connecting to a random Stranger ...
>
> Stranger found! Say hello, and please be polite. Type "bye" to finish the conversation
>
> hola!!
>
> **alex.pliutau** [10:31 PM]
>
> Nice, super private. How are you?
>
> **Stranger Bot** [10:31 PM]
>
> wat
>
> hahaha
>
> **alex.pliutau** [10:31 PM]
>
> bye
>
> **Stranger Bot** [10:31 PM]
>
> Bye! You finished conversation with the Stranger. Type hi again if you want to start a new random one.