Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/taciturnaxolotl/kreva

She comes to haunt your channels (nicely)
https://github.com/taciturnaxolotl/kreva

bun slack-edge slackbot

Last synced: 27 days ago
JSON representation

She comes to haunt your channels (nicely)

Awesome Lists containing this project

README

        

Kreva



Kreva is a simple slackbot to auto add me to new channels in the [Hackclub](https://hackclub.com/slack/) slack

---

![gif of the program in action](https://github.com/kcoderhtml/kreva/raw/master/.github/images/out.gif)

## Usage

Create a slack app as per the [manifest.yaml](manifest.yaml) and an env as below

```bash
SLACK_BOT_TOKEN=xoxb-xxx-xxxx-xxxxxx
SLACK_USER_TOKEN=xoxp-xxx-xxxx-xxxxxx
SLACK_SIGNING_SECRET=xxxxxx
NODE_ENV=development
ADMINS=U062UG485EE
```

```bash
bun install
bun run index.ts
```

then start an ngrok

```bash
ngrok http --domain casual-renewing-reptile.ngrok-free.app 3000
```

## Deployage

I use [#nest](https://www.hackclub.app/) so I made a systemd service file at `~/.config/systemd/user/kreva.service`

```ini
[Unit]
Description=slack channel stalker
DefaultDependencies=no
After=network-online.target

[Service]
Type=exec
WorkingDirectory=/home/kierank/kreva
ExecStart=bun run index.ts
TimeoutStartSec=0
Restart=on-failure
RestartSec=1s

[Install]
WantedBy=default.target
```

After a quick `systemctl --user enable kreva` and `systemctl --user start kreva` it's of to the races!

## License

_© 2024 Kieran Klukas - Licensed under [AGPL 3.0](LICENSE.md)_