{"id":21012257,"url":"https://github.com/codebanesr/slackslash","last_synced_at":"2025-08-04T10:40:42.282Z","repository":{"id":120253949,"uuid":"189285361","full_name":"codebanesr/slackslash","owner":"codebanesr","description":"Slack bot backend code, with server mounted on an ec2 instance. Has multiple channels that you can switch back and forth","archived":false,"fork":false,"pushed_at":"2019-06-03T09:54:50.000Z","size":2527,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T16:16:29.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/codebanesr.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}},"created_at":"2019-05-29T19:23:08.000Z","updated_at":"2019-12-01T16:19:07.000Z","dependencies_parsed_at":"2023-07-27T22:16:24.198Z","dependency_job_id":null,"html_url":"https://github.com/codebanesr/slackslash","commit_stats":null,"previous_names":["codebanesr/slackslash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codebanesr/slackslash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebanesr%2Fslackslash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebanesr%2Fslackslash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebanesr%2Fslackslash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebanesr%2Fslackslash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebanesr","download_url":"https://codeload.github.com/codebanesr/slackslash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebanesr%2Fslackslash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268683030,"owners_count":24289731,"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-08-04T02:00:09.867Z","response_time":79,"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":"2024-11-19T09:35:59.300Z","updated_at":"2025-08-04T10:40:42.181Z","avatar_url":"https://github.com/codebanesr.png","language":"JavaScript","readme":"# Welcome to StackSlash!\n\n# Tasks\n\nStackSlash stores your tasks in your slack, which means all your tasks are automatically saved in a database and are accessible **remotely!**\n\n## Create tasks for specific channels\n\nYou can create tasks in a particular channel and we make sure its accessible to only members of that channel. ***View and Edit rights*** are only allowed for the members of that channel\n\n## Switch to another channel\n\nYou can switch from one to another by clicking a list item on the left.\n\n\n## List of commands\n|  Command              |Description                          |Usage                         |\n|----------------|-------------------------------|-----------------------------|\n|/addtodo todoname|`Adds a todo item to the list for that channel`            |`/addtodo buy milk`            |\n|/listtodo          |`Lists out all the todo tasks for that channel`            |`/listtodo`            |\n|/marktodo todoname          |`removes the todo item with name todoname`|`marktodo buy milk`|\n\n## Delete a Todo\n\nYou can delete a todo by typing the **/marktodo todoname** button in the file explorer. The file will be moved into the **Trash** folder and automatically deleted after 7 days of inactivity. (Trashing the todo is in beta currently)\n\n## Project Description\nThis project contains three branches - \n*`*remotes/origin/master *remotes/origin/sr/no-web-hooks *remotes/origin/with-webhooks`*\n \nMaster contains the current code deployed on the aws server\nno-web-hook shows the approach of sending slack messages without using web hooks\nwith-webhooks shows the approach of sending slack messages using webhooks\n\n**Webhook Approach**\n\n    function  postSlackMessage(body,  req)  {\n    \trequest.post({\n    \t\t\turl:  req.body.response_url,\n    \t\t\tjson:  body,\n    \t\t\theaders:  {\n    \t\t\t\t\"Content-Type\":  \"application/json\"\n    \t\t\t}\n    \t\t},function(error,  response,  body)  {\n    \t\t\t\tconsole.log(body);\n    \t\t}\n    \t)}\n    }\n   This approach caches the `response_url` *`[webhook]`* coming in the request and sends the response at that `response_url`\n   **The advantage of using webhooks can be seen here** *https://api.slack.com/incoming-webhooks*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebanesr%2Fslackslash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebanesr%2Fslackslash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebanesr%2Fslackslash/lists"}