{"id":15404527,"url":"https://github.com/k1low/slkm","last_synced_at":"2026-03-16T17:32:16.826Z","repository":{"id":65211341,"uuid":"587160337","full_name":"k1LoW/slkm","owner":"k1LoW","description":"slkm is github.com/slack-go/slack wrapper package for posting message.","archived":false,"fork":false,"pushed_at":"2024-09-02T04:05:08.000Z","size":29,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T05:41:36.542Z","etag":null,"topics":["slack"],"latest_commit_sha":null,"homepage":"","language":"Go","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/k1LoW.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"github":"k1LoW","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-01-10T05:09:46.000Z","updated_at":"2024-09-02T20:14:16.000Z","dependencies_parsed_at":"2024-06-19T13:34:00.466Z","dependency_job_id":"469395fc-e2c5-42d4-8e43-00f25276d2d7","html_url":"https://github.com/k1LoW/slkm","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":0.35,"last_synced_commit":"6effd27d5c5d45da1072b998a0198f702cc584c3"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fslkm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fslkm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fslkm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fslkm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/slkm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249277952,"owners_count":21242642,"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":["slack"],"created_at":"2024-10-01T16:13:32.099Z","updated_at":"2026-03-16T17:32:16.777Z","avatar_url":"https://github.com/k1LoW.png","language":"Go","funding_links":["https://github.com/sponsors/k1LoW"],"categories":[],"sub_categories":[],"readme":"# slkm\n\nslkm is `github.com/slack-go/slack` wrapper package for posting message.\n\nThis package converts channels and mentions of users and user groups into the correct ID notation.\n\n- `#channel-name` -\u003e `CXXXXXXXX`\n- `@username` -\u003e `\u003c@UXXXXXXXX\u003e`\n- `@usergroup-name` -\u003e `\u003c!subteam^SXXXXXXXX\u003e`\n\n## Usage\n\n``` go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/k1LoW/slkm\"\n\t\"github.com/slack-go/slack\"\n)\n\nconst (\n\tnotifyChannel = \"#service-alerts\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tc, err := slkm.New()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tc.SetUsername(\"wakeup-bot\")\n\tblocks := []slack.Block{\n\t\tslack.NewSectionBlock(slack.NewTextBlockObject(\"mrkdwn\", \"Wake up @k1low !!\", false, false), nil, nil),\n\t}\n\tif err := c.PostMessage(ctx, notifyChannel, blocks...); err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n\n```\n\n## Required scope of `SLACK_API_TOKEN`\n\n- `channel:read`\n- `chat:write`\n- `chat:write.public`\n- `users:read`\n- `usergroups:read`\n- `chat:write.customize` ( optional )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fslkm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1low%2Fslkm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fslkm/lists"}