···1313bun dev
1414```
15151616+### Slack App Setup
1717+1818+1. Go to [api.slack.com/apps](https://api.slack.com/apps) and create a new app
1919+2. Choose "From an app manifest"
2020+3. Copy the contents of `slack-manifest.yaml` and paste it
2121+4. Install the app to your workspace
2222+5. Copy the "Bot User OAuth Token" (starts with `xoxb-`) and "Signing Secret"
2323+6. Invite the bot to your desired Slack channel: `/invite @IRC Bridge`
2424+1625### Environment Setup
17261827Make a `.env` file with the following:
19282029```bash
2121-# env vars go here
3030+# Slack Configuration
3131+SLACK_BOT_TOKEN=xoxb-your-bot-token-here
3232+SLACK_SIGNING_SECRET=your-signing-secret-here
3333+SLACK_CHANNEL=C1234567890 # Optional: for bidirectional bridging
3434+3535+# IRC Configuration
3636+IRC_NICK=slackbridge
3737+IRC_CHANNEL=#general
3838+3939+# Admin users (comma-separated Slack user IDs)
4040+ADMINS=U1234567890
4141+4242+# Server Configuration (optional)
4343+PORT=3000
2244```
4545+4646+See `.env.example` for a template.
4747+4848+### How it works
4949+5050+The bridge connects to `irc.hackclub.com:6667` (no TLS) and forwards messages bidirectionally:
5151+5252+- **IRC → Slack**: Messages from IRC appear in the configured Slack channel
5353+- **Slack → IRC**: Messages from Slack are sent to the IRC channel (if SLACK_CHANNEL is configured)
5454+5555+The bridge ignores its own messages and bot messages to prevent loops.
23562457If you want to report an issue the main repo is [the tangled repo](https://tangled.org/dunkirk.sh/irc-slack-bridge) and the github is just a mirror.
2558