VandyHacks / nimbus

the VandyHacks internal slack bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nimbus

Slack bot that works with slash commands and a URL shortener, namely vhl.ink.

Setup

  • First, install packages in the directory of this repository running in the terminal:

npm i

  • Read through Cloudflare's Getting started guide to begin setting up wrangler.
  • Configure development and secret keys by running wrangler login and replacing the account_id in wrangler.toml with your account_id as mentioned in the getting started guide.

Secrets

You will need some secrets in order to make everything run properly. We use GitHub repository secrets, and you can use Cloudflare Wrangler Secrets for local secret development.

Development

  • Begin development on your local machine with: wrangler dev

Other information

Slash command usage

  • /shorten or /shorten help prints out slash command usage information.
  • /shorten <path> <url> tells the link shortener to make vhl.ink/path go to url.
  • /shorten list lists out all existing link paths.
  • /shorten delete <path> <key> deletes vhl.ink/path, given that the correct secret key is passed in.

Credits

About

the VandyHacks internal slack bot

License:MIT License


Languages

Language:TypeScript 97.0%Language:JavaScript 3.0%