{"id":17644981,"url":"https://github.com/actuallyconnor/heyburrito","last_synced_at":"2025-03-30T07:13:50.498Z","repository":{"id":243419575,"uuid":"330065606","full_name":"ActuallyConnor/HeyBurrito","owner":"ActuallyConnor","description":"A replica of Hey Taco that you can setup yourself","archived":false,"fork":false,"pushed_at":"2021-05-28T21:26:10.000Z","size":331,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T09:17:34.381Z","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/ActuallyConnor.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-16T02:12:42.000Z","updated_at":"2024-04-03T15:59:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff67e4d7-bbab-49cc-a720-7925e608c4fc","html_url":"https://github.com/ActuallyConnor/HeyBurrito","commit_stats":null,"previous_names":["actuallyconnor/heyburrito"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActuallyConnor%2FHeyBurrito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActuallyConnor%2FHeyBurrito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActuallyConnor%2FHeyBurrito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActuallyConnor%2FHeyBurrito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ActuallyConnor","download_url":"https://codeload.github.com/ActuallyConnor/HeyBurrito/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285816,"owners_count":20752956,"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","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":"2024-10-23T10:44:11.784Z","updated_at":"2025-03-30T07:13:50.480Z","avatar_url":"https://github.com/ActuallyConnor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hey Burrito\n\n![Hey Burrito icon](public/images/heyburritoicon.jpg)\n\n### The open-source HeyTaco Slack Bot replacement\n\n## Branding colours\n\n- Primary: #F8D233\n- Secondary: #1F3FB2\n\n## Setup\n\n### Slack Events API Challenge\n\nRead this documentation [Events API Request URLs](https://api.slack.com/apis/connections/events-api#url_verification)\n\n- You must have an active SSL certificate on your URL endpoint\n- The URL verification only needs to be done when setting up or changing the URL endpoint\n\nThe way the JSON payload from Slack looks like this:\n\n```json\n{\n    \"type\": \"url_verification\",\n    \"token\": \"hwLi3kEqs0cVt5nkMwHheL9f\",\n    \"challenge\": \"j26kOzF3Xk1mrwPqijjoMo96Q86iLgESYzOdAhTMUWaaz3iu7Lok\"\n}\n```\n\n_Slack may trip you up by showing you what their payload looks like if you fail too many times. The payload data that \nthey show you is wrong. The payload data that they show you has the data in an object called body. Luckily the function\nI have created accounts for this in case Slack ever does decide to wrap the data in an object called body._\n\nTo perform the URL verfication follow these steps:\n\n1. In `routes/api.php` change the line for the `/burrito` endpoint to have it use the `slackChallenge()` method instead\nof the `giveBurrito()` method.\n   \n   i.e. It should look like this `Route::post('/burrito', [BurritoController::class, 'slackChallenge']);`\n2. In the Slack Bot Event Subscriptions page enter the url endpoint you where that method will now be hit.\n    \n    i.e. `https://{yourapiurl}/api/burrito`\n\n    1. If your verification fails please reread the documentation and run the tests to see if \nthe function is operating correctly.\n3. Subscribe to the following bot events: `app_mention` and `message.channels`\n4. Click _'Save Changes'_\n5. Revert back your `routes/api.php` file.\n\n## Events\n\n### Core Event Data\n\n```json\n{\n    \"token\": \"ZZZZZZWSxiZZZ2yIvs3peJ\",\n    \"team_id\": \"T061EG9R6\",\n    \"api_app_id\": \"A0MDYCDME\",\n    \"event\": {\n        ...\n    },\n    \"type\": \"event_callback\",\n    \"event_id\": \"Ev0MDYHUEL\",\n    \"event_time\": 1515449483000108,\n    \"authed_users\": [\n        \"U0LAN0Z89\"\n    ]\n}\n```\n\n### Message Event\n\nRequires `channel.history` permission\n\n#### Sample data\n\n```json\n{\n    ...,\n    \"event\": {\n        \"type\": \"message\",\n        \"channel\": \"C2147483705\",\n        \"user\": \"U2147483697\",\n        \"text\": \"Hello world\",\n        \"ts\": \"1355517523.000005\"\n    },\n    ...\n}\n```\n\n### App mention\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factuallyconnor%2Fheyburrito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factuallyconnor%2Fheyburrito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factuallyconnor%2Fheyburrito/lists"}