Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/taciturnaxolotl/kreva
- Owner: taciturnaxolotl
- License: agpl-3.0
- Created: 2024-11-13T00:50:19.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-11-19T16:09:06.000Z (about 1 month ago)
- Last Synced: 2024-11-29T19:35:24.055Z (28 days ago)
- Topics: bun, slack-edge, slackbot
- Language: TypeScript
- Homepage: https://youtu.be/VR0iMmJOk8M
- Size: 1010 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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)_