Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plutov/slack-stranger-bot
Meet strangers in your Slack Workspace, explore new people. Fully anonymous and secure, bot doesn't store any data.
https://github.com/plutov/slack-stranger-bot
bot golang slack
Last synced: 22 days ago
JSON representation
Meet strangers in your Slack Workspace, explore new people. Fully anonymous and secure, bot doesn't store any data.
- Host: GitHub
- URL: https://github.com/plutov/slack-stranger-bot
- Owner: plutov
- License: mit
- Created: 2017-10-11T13:47:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T14:59:59.000Z (about 2 months ago)
- Last Synced: 2024-09-14T04:51:42.918Z (about 2 months ago)
- Topics: bot, golang, slack
- Language: Go
- Homepage:
- Size: 4.21 MB
- Stars: 11
- Watchers: 9
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### 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](https://api.slack.com/apps/) 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````bash
docker build -t slack-stranger-bot .
docker run slack-stranger-bot -e SLACK_TOKEN=
```### Run Unit Tests
```
go test -v ./...
```### Coversation example
```bash
> **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.
```