ducminh-phan / slack-ascii-emoticons

Slack app to have fun with ASCII emoticons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slack-ascii-emoticons

slack-ascii-emoticons is a Slack app to send ASCII emoticons. (Technically, it should be called Unicode art.)

Demo

demo

Installation

  • Install serverless
  • Install the dependencies
    yarn install
    
  • Deploy with serverless
    serverless deploy
    
  • Note the output of the previous command, there should be something like
    endpoints:
      POST - https://********.execute-api.us-west-2.amazonaws.com/dev/webhook
    
  • Create a Slack app with a slash command, with the scope chat:write:bot, or chat:write. Assign the URL above to the slash command's request URL.

Usage

  • To get the list of all available emoticons
    /<slash command> help
    
  • To send an emoticon
    /<slash command> <emoticon name>
    
  • To add/remove emoticons, you just need to edit src/emoMapping.ts and redeploy, or edit src/emoMapping.js directly in the Lambda console.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Slack app to have fun with ASCII emoticons

License:MIT License


Languages

Language:TypeScript 98.0%Language:Shell 2.0%