# Slack 1. [TL;DR](#tldr) 1. [Add custom emoji](#add-custom-emoji) 1. [Give aliases to existing emojis](#give-aliases-to-existing-emojis) 1. [Further readings](#further-readings) 1. [Sources](#sources) ## TL;DR
Setup ```sh brew install --cask 'slack' mas install '803453959' ```
Usage ```sh # Send notifications to channels curl -X POST -H 'Content-type: application/json' \ --data '{"text": "Staging DB restore completed successfully"}' \ 'https://hooks.slack.com/services/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' ```
## Add custom emoji Check out [slackmojis] for some common reactions. 1. Go to . 1. Select _Add Custom Emoji_. 1. Upload the image. Supported formats: GIF, JPG, PNG. 1. Give it a name. ## Give aliases to existing emojis 1. Go to . 1. Select _Add Alias_. 1. Choose the image. 1. Give it an alias. ## Further readings - [Website] - [Posting messages using curl] ### Sources - [Slackmojis] - [Slack Notifications for Ansible Tower (AWX)] [posting messages using curl]: https://api.slack.com/tutorials/tracks/posting-messages-with-curl [website]: https://slack.com/ [slack notifications for ansible tower (awx)]: https://mpolinowski.github.io/docs/DevOps/Ansible/2021-04-30-ansible-tower-slack-notifications/2021-04-30/ [slackmojis]: https://slackmojis.com/