An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# :partyparrot:

![partyparrot](media/example.gif)

# 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)
[![teespring campaign](media/teespring.png)](https://teespring.com/shop/partyparrotee)