HiroyukiTamura / SlackBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BigEmoji

Chat with big :emoji: includes custom and default one in slack.

emoji

this bot manages user token itself and any user can register/unregister for the bot with its interactive messaging on slack.

type pattern; /stamp :emoji: gif

Framework

nodejs, firebase(Cloud Functions, Firestore)

Firestore node tree

firestore is used to save user token for managing permission and switching on-off of the bot.

- emoji_user_token
     |- {userId}
           |- token: {String}
- registered 
     |- {userId}
           |- channel: {String}
              enabled: {boolean}
              user: {String}

Slack Config

Interactive Components
  • Request URL: {FUNCTION_URL}/widgets/unregisterEmoji
Slash Commands
  • Command: /stamp
  • URL: {FUNCTION_URL}/widgets/bigEmoji
OAuth & Permissions
  • Redirect URLs: {FUNCTION_URL}/widgets/bigEmojiAuthRedirected
  • Scopes: chat:write:user, im:history, im:read, im:write, emoji:read, bot, commands
Event Subscriptions
  • Request URL: {FUNCTION_URL}/widgets/bigEmojiEvent
  • Subscribe to Bot Events: message.im

Jira

https://freqmodu874.atlassian.net/secure/RapidBoard.jspa

About

License:Apache License 2.0


Languages

Language:JavaScript 100.0%