{"id":34725830,"url":"https://github.com/liquidlight/slack-tea","last_synced_at":"2025-12-25T02:27:12.251Z","repository":{"id":23894471,"uuid":"27274079","full_name":"liquidlight/slack-tea","owner":"liquidlight","description":"Decide who makes the tea using Slack","archived":false,"fork":false,"pushed_at":"2017-07-14T12:06:56.000Z","size":9,"stargazers_count":8,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-30T06:28:42.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liquidlight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-28T16:18:58.000Z","updated_at":"2025-06-26T10:40:54.000Z","dependencies_parsed_at":"2022-07-23T23:32:05.414Z","dependency_job_id":null,"html_url":"https://github.com/liquidlight/slack-tea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liquidlight/slack-tea","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liquidlight%2Fslack-tea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liquidlight%2Fslack-tea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liquidlight%2Fslack-tea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liquidlight%2Fslack-tea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liquidlight","download_url":"https://codeload.github.com/liquidlight/slack-tea/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liquidlight%2Fslack-tea/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28017200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-25T02:27:12.180Z","updated_at":"2025-12-25T02:27:12.239Z","avatar_url":"https://github.com/liquidlight.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tea Bot\n\n### Can't decide who should make a brew? Let Slack do it for you\n\n_This uses the Slack API class created by 10w042 - the original can be found [on GitHub](https://github.com/10w042/slack-api). The class is included in this repo for ease of use._\n\nThis Outgoing WebHook takes the members of the channel to decide who should get up and make a round of tea. If you have members of the team that don't drink tea - then it might be worth making a dedicated channel.\n\n### Installation\n\n1. Download the PHP files and host them on an externally accessible URL\n2. Head to [https://api.slack.com/web](https://api.slack.com/web) and (if you haven't already) scroll down and click the **Create Token** link\n3. Copy your token that is generated and paste it into the `$auth_token` variable at the top of `tea.php`\n4. Drop over to [https://YOURTEAM.slack.com/services/new](https://YOURTEAM.slack.com/services/new) and right at the bottom, add the **Outgoing WebHooks** integration\n5. Create the WebHook with the following settings\n\t- Channel: **Any** (or your dedicated Tea channel)\n\t- Trigger Word(s): **!tea** (if you change this - remeber to change the `$trigger_word` var at the top of `tea.php`)\n\t- URL(s): The url of where your `tea.php` is\n\t- Descriptive Label: What ever you want\n\t- Customize Name: I called ours \"**Tea Bot**\"\n\t- Customize Icon: There is a tea icon in there somewhere!\n6. Save the settings!\n\nJob Done!\n\nIf all has worked well, you should be able to type your trigger word into your designated channel and hey presto! A tea maker is selected.\n\n### Customisation\n\nThere are a couple variables at the top of `tea.php` - make sure you keep these updated.\n\n`$trigger_word` - Make sure if your trigger word is anything other than **!tea** you update this variable.\n\n`$responses` - feel free to update/change the responses, just us `{{USER}}` where you want the users name to appear.\n\n### Pass in an extra string\n\nThe tea bot allows you to pass in an extra paramter to exclude a tea maker. For example, if _Tarquin_ had just made the round of tea - it would be unfair for him to be in the spinning for the next round:\n\n\t!tea tarquin\n\nThis will select any other channel member except Tarquin. You get your tea, Tarquin doesn't make two rounds in a row! Everyone is happy (unless you get selected).\n\nThis does a very rudamentary `strpos()` and so could be slightly abused. Want a round of tea to be made but anyone with an **m** in their name is excluded?\n\n\t!tea m\n\n\n### Todo\n\n- Add initial feedback to let the users know the Tea Bot is working\n- Use the Slack class to send back messages to the channel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliquidlight%2Fslack-tea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliquidlight%2Fslack-tea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliquidlight%2Fslack-tea/lists"}