Skip to content

saitota/SlackAnonymousChannel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

😎 Slack Anonymous Channel

It provides Anonymous chat channel at Slack.

DEMO:

demo

DEMO-ja:

demo_ja

Description

  • 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 or notification before deleting.
  • Send caution message on DM to member who joined channel to tell policy of channel.

Requirement

Installation

  1. Create Slack BOT from Here

    • Bot User
      • Display Name
      • Default Username
    • Permissions
      • OAuth & Permissions
        • Scopes
          • admin
          • channels:read
          • channels:write
          • channels:history
          • users:read
  2. Get two tokens

    • Permissions
      • OAuth & Permissions
        • OAuth Access Token
        • Bot User OAuth Access Token
  3. Make some channel like #anonymous and get channel id lke C1234ABCD from here

  4. Clone this repo.

$ git clone https://github.com/saitota/SlackAnonymousChannel.git
  1. 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'
  1. 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
  1. Set Slack BOT endpoint and event subscribe settings

    • Event Subscriptions
      • Request URL: set your endopint url(you can see in your deploy log)
    • Subscribe to Workspace Events
      • message.channels
  2. Done! try to say poop at Slack.

🤔 Anything Else

I wrote article about this BOT.

saitotak - Qiita

🐑 Author

saitotak

✍ License

MIT

About

It provides Anonymous chat channel at Slack.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages