{"id":22712053,"url":"https://github.com/buildit/twig-slack-bot","last_synced_at":"2025-06-23T00:02:52.307Z","repository":{"id":78235782,"uuid":"90779549","full_name":"buildit/twig-slack-bot","owner":"buildit","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-13T21:40:49.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-29T22:23:53.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/buildit.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":"2017-05-09T18:35:46.000Z","updated_at":"2017-05-16T21:19:18.000Z","dependencies_parsed_at":"2023-03-18T05:15:46.627Z","dependency_job_id":null,"html_url":"https://github.com/buildit/twig-slack-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/buildit/twig-slack-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildit%2Ftwig-slack-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildit%2Ftwig-slack-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildit%2Ftwig-slack-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildit%2Ftwig-slack-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildit","download_url":"https://codeload.github.com/buildit/twig-slack-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildit%2Ftwig-slack-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261386709,"owners_count":23150866,"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-12-10T13:09:15.404Z","updated_at":"2025-06-23T00:02:47.160Z","avatar_url":"https://github.com/buildit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twig-slack-bot\n\nThis is an example of how [Twig](https://github.com/buildit/twig) can be used to display various Buildit slack channels over the course of a set interval. In this example, that interval is set to 24 hours.\n\nTo run locally, clone the repo. Set a Slack API token as a TOKEN variable in .env.\n\nOn Twig, create a twiglet with an appropriate model (there is a slack model that exists on [staging](http://staging.twig2.riglet/model/slack)). You can edit the config.js file to change the slack channels, the array range that adjusts the node colors, twiglet name, time interval, slack token, api url, etc. Make sure the twiglet name matches the correct twiglet you want to send events to. \n\nThen run in the terminal:\n```Shell\nTOKEN=SLACK_TOKEN TWIG_SLACK_API=API_URL node index.js\n```\nwhere SLACK_TOKEN is the Slack token and API_URL is either the local or staging Twig API url.\n\nAn example of a twiglet generated by a slack bot (deployed in the Buildit Riglet): [https://staging-twig.buildit.tools/twiglet/slack-demo](https://staging-twig.buildit.tools/twiglet/slack-demo)\n\nTo see another example of creating events via API (not using the Slack api) check out [https://github.com/buildit/twig/wiki/Creating-events-via-API-(nodeJS-using-request-promise-native)](https://github.com/buildit/twig/wiki/Creating-events-via-API-(nodeJS-using-request-promise-native))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildit%2Ftwig-slack-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildit%2Ftwig-slack-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildit%2Ftwig-slack-bot/lists"}