https://github.com/shrugs/partyparrot
:tada: :bird: Very Serious Code :tm: that generates huge slack messages with emojis.
https://github.com/shrugs/partyparrot
emoji heroku party-parrot partyparrot shitposting slack
Last synced: 5 months ago
JSON representation
:tada: :bird: Very Serious Code :tm: that generates huge slack messages with emojis.
- Host: GitHub
- URL: https://github.com/shrugs/partyparrot
- Owner: shrugs
- License: mit
- Created: 2015-11-13T05:20:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T20:33:30.000Z (almost 5 years ago)
- Last Synced: 2024-08-05T06:06:17.751Z (9 months ago)
- Topics: emoji, heroku, party-parrot, partyparrot, shitposting, slack
- Language: Python
- Homepage: https://partyparrot.shrugs.vercel.app
- Size: 1.33 MB
- Stars: 395
- Watchers: 11
- Forks: 37
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :partyparrot:

# Usage
Deploy to now with `now`
## With the Party Parrot (:partyparrot:)
Just pass the script a string of your choosing.
```bash
python partyparrot.py "HELLO" | pbcopy
```## Custom Emoji List
Use the `-e` or `--emojis` flag to use a custom list of emojis.
```bash
python partyparrot.py "something stupid" -e ":emoji1:" ":emoji2:" ":emoji3:" ":emoji4:" | pbcopy
```## Auto-Post to Slack
Use the `-f` or `--force` flag to auto-post to your favorite Slack channel (configure URL in the "Incoming Webhooks" section of the "Integrations" page).
```bash
SHITPOSTING_ENDPOINT="" python partyparrot.py "something stupid" -f
```## As a Slash Command `/partyparrot`
Now that slack supports posting to the channel in response to a slash command, providing the party parrot as one makes a lot of sense. Simply deploy this app to your favorite Procfile-compatible hosting provider ([heroku](https://heroku.com/) and [dokku](https://github.com/dokku/dokku) come to mind) and configure the Custom Slash Command Integration in your slack channel. The app allows for the optional ENV var `SLACK_TEAM_TOKEN` to restrict access to a specific team.
## Tests
> implying you actually want to test this
`python test_partyparrot.py`
## Shameless Plug
I also made a shirt for the party parrot because it compelled me to. help me
[Teespring Campaign](https://teespring.com/shop/partyparrotee)
[](https://teespring.com/shop/partyparrotee)