{"id":15663294,"url":"https://github.com/ldez/stackoverflow-slack-bot","last_synced_at":"2025-07-17T20:41:42.514Z","repository":{"id":74041635,"uuid":"89948506","full_name":"ldez/stackoverflow-slack-bot","owner":"ldez","description":"Track a tag on StackOverflow and push to Slack","archived":false,"fork":false,"pushed_at":"2019-03-15T20:49:17.000Z","size":27,"stargazers_count":17,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T16:14:37.892Z","etag":null,"topics":["slack-bot","stackoverflow"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ldez.png","metadata":{"files":{"readme":"readme.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-01T18:01:29.000Z","updated_at":"2024-11-01T10:58:20.000Z","dependencies_parsed_at":"2023-03-11T00:30:41.131Z","dependency_job_id":null,"html_url":"https://github.com/ldez/stackoverflow-slack-bot","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ldez/stackoverflow-slack-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fstackoverflow-slack-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fstackoverflow-slack-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fstackoverflow-slack-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fstackoverflow-slack-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ldez","download_url":"https://codeload.github.com/ldez/stackoverflow-slack-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fstackoverflow-slack-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265660292,"owners_count":23807115,"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-bot","stackoverflow"],"created_at":"2024-10-03T13:36:25.896Z","updated_at":"2025-07-17T20:41:42.471Z","avatar_url":"https://github.com/ldez.png","language":"JavaScript","readme":"ifdef::env-github[]\n:status:\n:outfilesuffix: .adoc\n:caution-caption: :fire:\n:important-caption: :exclamation:\n:note-caption: :paperclip:\n:tip-caption: :bulb:\n:warning-caption: :warning:\nendif::[]\n\n= StackOverflow Slack Integration\n\nimage:https://travis-ci.org/ldez/stackoverflow-slack-bot.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/ldez/stackoverflow-slack-bot\"]\nimage:https://img.shields.io/docker/build/ldez/stackoverflow-slack-bot.svg[\"Docker Build Status\", link=\"https://hub.docker.com/r/ldez/stackoverflow-slack-bot/builds/\"]\n\n\nThis is a basic script to keep track a tag on StackOverflow and push accurate links to Slack.\n\nimage::https://cloud.githubusercontent.com/assets/5674651/25589901/a3124e4a-2eae-11e7-838c-13c80c69d2f8.png[slackoverbot]\n\n== How to use\n\n- Make sure link:https://nodejs.org[Node] is installed.\n- Run `npm install`.\n- Add your configuration to `config.json`\n- Let a cron-job run `npm run start` every 15 minutes (StackOverflow quota is 300 requests by day)\n\n.config.json\n[source, json]\n----\n{\n  \"tags\": \"tag1;tag2\",\n  \"so\": {\n    \"apiBaseURL\": \"https://api.stackexchange.com/2.2\",\n    \"key\": \"[optional: your StackApps key, for a higher request quota]\",\n    \"dayBack\": 1,\n    \"hourBack\": 0,\n    \"minuteBack\": 0\n  },\n  \"slack\": {\n    \"apiBaseUrl\": \"https://[your_team_name].slack.com/api/\",\n    \"token\": \"[your_token]\",\n    \"channel\": \"#random\",\n    \"botName\": \"[your_bot_name]\",\n    \"botIcon\": \"[your_bot_icon]\",\n    \"icons\": {\n      \"newActivity\": \":trackball:\",\n      \"topic\": \":speaking_head_in_silhouette:\",\n      \"askedQuestion\": \":speech_balloon:\",\n      \"revisedQuestion\": \":pencil:\",\n      \"revisedAnswer\": \":pencil:\",\n      \"answerAccepted\": \":ok_hand:\",\n      \"postedAnswer\": \":left_speech_bubble:\",\n      \"comment\": \":grey_question:\"\n    }\n  },\n  \"lastEndFileName\": \"lastend\",\n  \"dryRun\": false\n}\n----\n\n// [horizontal]\ntags:: name of the tags to track (separate by `;`),\nso.apiBaseURL:: URL of the StackOverflow API.\nso.minuteBack:: number of minutes previous now, use for create the first query.\nso.hourBack:: number of hours previous now, use for create the first query.\nso.dayBack:: number of days previous now, use for create the first query.\nso.key:: an API key from https://stackapps.com/apps/oauth/register/submit to increase your per-day quota from 300 to 10000\nslack.apiBaseUrl:: URL of Slack API.\nslack.token:: Slack token, only for dev purpose. DON'T USE IN PRODUCTION.\nslack.channel:: Name of the channel to publish. (must start with `#`)\nslack.botName:: your bot account name.\nslack.botIcon:: your bot emoji icon. (can be blank.)\nslack.icons.xxx:: emoji for each situation. (can be blank.)\nlastEndFileName:: name of file use for store the last query date.\ndryRun:: if `true`, display the Slack payload without send it.\n\n\nIMPORTANT: In production, use environment variable to set your Slack token (`SLACK_API_TOKEN`).\n\n\nThanks to link:https://github.com/cwi-swat[@cwi-swat] for link:https://github.com/cwi-swat/stackoverflow-slack-plugin[inspiration].\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldez%2Fstackoverflow-slack-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fldez%2Fstackoverflow-slack-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldez%2Fstackoverflow-slack-bot/lists"}