It provides Anonymous chat channel at Slack.
DEMO:
DEMO-ja:
- The post will delete immediately and it will be re-posted by BOT.
- You can chat here like anonymously.
- Message/Share/Reply will be anonymized. Join/Leave/Upload will ignore.
- Sometimes posts are cache and displayed in
Slack client
ornotification
before deleting. - Send caution message on DM to member who joined channel to tell policy of channel.
- AWS Account
- Serverless Framework
- serverless-plugin-aws-alerts (optional)
- Slack Account
-
Create Slack BOT from Here
- Bot User
- Display Name
- Default Username
- Permissions
- OAuth & Permissions
- Scopes
- admin
- channels:read
- channels:write
- channels:history
- users:read
- Scopes
- OAuth & Permissions
- Bot User
-
Get two tokens
- Permissions
- OAuth & Permissions
- OAuth Access Token
- Bot User OAuth Access Token
- OAuth & Permissions
- Permissions
-
Make some channel like
#anonymous
and get channel id lkeC1234ABCD
from here -
Clone this repo.
$ git clone https://github.com/saitota/SlackAnonymousChannel.git
- Modify environment_dev.yml 's two TOKENs to your token.
OAUTH_TOKEN: 'xoxp-000000000000-000000000000-000000000000-0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x'
BOT_TOKEN: 'xoxb-000000000000-0x0x0x0x0x0x0x'
HOOK_CHANNEL: 'Cxxxxxxxx'
- Deploy with Serverless Framework (you must aws-cli initialize before)
$ sls deploy
...
api keys:
None
endpoints:
POST - https://0x0x0x0x0x.execute-api.ap-northeast-1.amazonaws.com/dev/
functions:
fnc: SlackAnonymousChannel-dev-fnc
-
Set Slack BOT endpoint and event subscribe settings
- Event Subscriptions
- Request URL:
set your endopint url(you can see in your deploy log)
- Request URL:
- Subscribe to Workspace Events
- message.channels
- Event Subscriptions
-
Done! try to say
poop
at Slack.
I wrote article about this BOT.