{"id":13448697,"url":"https://github.com/yhay81/GASlacker","last_synced_at":"2025-03-22T17:32:17.473Z","repository":{"id":40957167,"uuid":"125861034","full_name":"yhay81/GASlacker","owner":"yhay81","description":"Google App Script interface for Slack API","archived":false,"fork":false,"pushed_at":"2023-01-04T21:37:13.000Z","size":2998,"stargazers_count":26,"open_issues_count":26,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-01T06:20:44.275Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yhay81.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-19T13:22:06.000Z","updated_at":"2023-12-25T08:35:06.000Z","dependencies_parsed_at":"2023-02-02T20:46:11.186Z","dependency_job_id":null,"html_url":"https://github.com/yhay81/GASlacker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhay81%2FGASlacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhay81%2FGASlacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhay81%2FGASlacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhay81%2FGASlacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yhay81","download_url":"https://codeload.github.com/yhay81/GASlacker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221832217,"owners_count":16888195,"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-07-31T06:00:17.814Z","updated_at":"2024-10-28T13:30:44.609Z","avatar_url":"https://github.com/yhay81.png","language":"TypeScript","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# GASlacker\n\nGoogle Apps Script interface for Slack API\n\n## Usage\n\n### Easy way\n\n1. Create a new Apps Script.\n2. Copy entire file of /dist/bundle.js and Paste it to the new apps script.\n3. Publish your App Script from Apps Script web editor as an API and copy the key.\n4. Create Another App Script and import the library which you created from `Resources\u003eLibrary`.\n5. You can Add your token to your Properties in your scripts and get it and use the library like the Example below.\n\n### Developer way\n\n1. Clone this repository.\n2. Change scriptId in .clasp.json to your new empty Apps Script.\n3. Do `npm run deploy`.\n4. Publish your App Script from Apps Script web editor as an API and copy the key.\n5. Create Another App Script and import the library which you created from `Resources\u003eLibrary`.\n6. You can Add your token to your Properties in your scripts and get it and use the library like the Example below.\n\n#### Example\n\n```JavaScript\nvar token = PropertiesService.getScriptProperties().getProperty('SLACK_ACCESS_TOKEN');\nvar slack = GASlacker.methods(token);\n\nfunction doPost(e){\n  var event = JSON.parse(e.postData.contents).event;\n  if(event.text.match(/hello/)){\n    var text = \"Hello World\";\n    slack.chat.postMessage(event.channel, text);\n  }\n}\n```\n\n## Documentation\n\nhttps://api.slack.com/methods\n\n## Reference\n\n- https://github.com/os/slacker  \n  Python Interface (GASlacker interface imitated this.)\n\n- https://github.com/soundTricker/SlackApp  \n  GAS Library for same purpose in CoffeeScript (not updated)\n\n- https://github.com/howdy39/gas-clasp-starter  \n  Starter to develop GAS with git\n\n## License\n\nThis software is released under the MIT License, see [LICENSE.txt](LICENSE.txt).\n\n## Contributing\n\nAny Issue and PR for better software is wellcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhay81%2FGASlacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyhay81%2FGASlacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhay81%2FGASlacker/lists"}