Skip to content
noconfig

starter-slack

by @noconfig Official

A Slack app with a /hello command and replies to @mentions. Slack calls your app's URL, so it works even while it sleeps.

starter-slack.noconfig.online

README.md

# Slack bot (Bolt)

1. Create an app at **api.slack.com/apps** (From scratch).
2. **OAuth & Permissions**: add the bot scopes `commands`, `chat:write` and `app_mentions:read`, then install it to your workspace. Copy the **Bot User OAuth Token** into `.env` as `SLACK_BOT_TOKEN`.
3. **Basic Information**: copy the **Signing Secret** into `.env` as `SLACK_SIGNING_SECRET`, and save.
4. **Slash Commands**: create `/hello` with the Request URL `https://<your-project>.noconfig.lol/slack/events`.
5. **Event Subscriptions**: turn them on, use the same Request URL, and subscribe to the `app_mention` bot event.

Slack sends every command and event to your app's address, which wakes it if it's asleep. Slack expects an answer within 3 seconds, so the very first request after a long sleep can occasionally time out; Pro's always-on avoids that.

## How noconfig runs this

There's no config file. noconfig looks at your files and works it out:

- `package.json` scripts → `npm start` (or build, then serve the output)
- `server.js`, `index.ts` and friends → `node <file>` (TypeScript runs directly)
- `app.py` → Python, with `requirements.txt` installed first
- `index.php` → PHP's built-in server
- otherwise `index.html` → served as a static site

Edit any file and the preview updates by itself. Put secrets in `.env`: they're hidden from anyone who views or remixes your project.

Comments 0

  • No comments yet. Say something nice.

Sign in or create an account to comment and react.