{"id":17334440,"url":"https://github.com/marshallasch/slack-name-bot","last_synced_at":"2026-02-14T22:04:31.859Z","repository":{"id":41730633,"uuid":"227657829","full_name":"MarshallAsch/slack-name-bot","owner":"MarshallAsch","description":"Slack Bot for Keeping track of who users are","archived":false,"fork":false,"pushed_at":"2022-12-11T16:59:26.000Z","size":465,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T22:59:35.510Z","etag":null,"topics":["bot","bot-users","nodejs","slack"],"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/MarshallAsch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-12T17:11:32.000Z","updated_at":"2020-03-20T20:08:33.000Z","dependencies_parsed_at":"2023-01-27T03:25:14.262Z","dependency_job_id":null,"html_url":"https://github.com/MarshallAsch/slack-name-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MarshallAsch/slack-name-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshallAsch%2Fslack-name-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshallAsch%2Fslack-name-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshallAsch%2Fslack-name-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshallAsch%2Fslack-name-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarshallAsch","download_url":"https://codeload.github.com/MarshallAsch/slack-name-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshallAsch%2Fslack-name-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29457824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T21:29:27.764Z","status":"ssl_error","status_checked_at":"2026-02-14T21:28:11.111Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bot","bot-users","nodejs","slack"],"created_at":"2024-10-15T15:06:05.178Z","updated_at":"2026-02-14T22:04:31.842Z","avatar_url":"https://github.com/MarshallAsch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tracking Slack Name and Email Changes\n\n\nThis Slack app is based off of the [template-terms-of-service](https://github.com/slackapi/template-terms-of-service) sample app.\n\nThis Slack app will receive an event every time a user signs up for the workspace or changes their details.\nAny workspace administrator is able to query the history using the slash command `/whois [@user]`.\n\n\n## Setup\n\n#### Create a Slack app\n\n1. [Create an app](https://api.slack.com/apps)\n2. Go to **Bot Users** and click \"Add a Bot User\" to create a, app bot. Save the change.\n3. Enable Interactive components (See *Enable Interactive Components* below)\n4. Navigate to the **OAuth \u0026 Permissions** page and add the following scopes:\n    * `bot`\n    * `chat:write:bot`\n    * `commands`\n    * `users:read`\n    * `users:read:email`\n    * `team:read`\n    * `channels:read`\n5. Click 'Save Changes' and install the app (You should get an OAuth access token after the installation)\n6. Enable the events (See *Enable the Events API* below. It doesn't let you  the Request URL until you run the code!)\n7. In your Slack workspace, invite the bot to #general, where the new user will join.\n\n#### Run locally\n1. Get the code\n    * Either clone this repo and run `npm install`\n    * Or run it as a docker container `docker pull marshallasch/slack-name-bot`\n2. Set the following environment variables to `config.ini` (see `config.ini.tmp`):\n    * Note this will be created by `docker run marshallasch/slack-name-bot` as long as the variables are set\n    * `SLACK_ACCESS_TOKEN`: Your app's `xoxb-` token (available on the Install App page, after you install the app to a workspace once.)\n    * `SLACK_SIGNING_SECRET`: Your app's Signing Secret (available on the **Basic Information** page)\n    * `SLACK_CLIENT_SECRET`: Your app's Client Secret (available on the **Basic Information** page)\n    * `SLACK_CLIENT_ID`: Your app's ID (available on the **Basic Information** page)\n\n    * `DATABASE` the data base name to use\n    * `DB_PORT` the mongo db port to connect to (default is 27017)\n    * `DB_HOST` the host of the mongo db server\n    * `DB_USER` the mongo db user name\n    * `DB_PASS` the plain text mogodb password\n3. If you're running the app locally:\n    * Start the app (`npm start`)\n\n#### Enable the Events API\n1. Go back to the app settings and click on Events Subscriptions\n1. Set the Request URL to your server (*e.g.* `https://yourname.ngrok.com`) + `/events`\n1. On the same page, subscribe to the `team_join` and `user_change` workspace events\n\n#### Enable the Slash Commands\n1. Go back to the app settings and click on Slash Commands\n1. Set the Request URL to your server (*e.g.* `https://yourname.ngrok.com`) + `/command`\n1. On the same page, set the command name to `/whois` and the description\n1. On the same page, check the `Escape channels, users, and links sent to your app` checkbox\n\n\n### Requirements\n\nThis application requires a connection to mongodb\n\nTo create the mongodb database and user account run\n\n```\nuse slack_users\ndb.createUser(\n   {\n     user: \"slackBot\",\n     pwd: \"slackpass\",\n     roles: [ \"readWrite\" ]\n   }\n)\n```\n\nFrom a mongo shell on the db server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarshallasch%2Fslack-name-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarshallasch%2Fslack-name-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarshallasch%2Fslack-name-bot/lists"}