Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/depthbomb/weathergoat

A Discord bot for reporting weather alerts and hourly forecasts to channels.
https://github.com/depthbomb/weathergoat

bun discord discord-bot discordjs typescript weather weather-api

Last synced: about 1 month ago
JSON representation

A Discord bot for reporting weather alerts and hourly forecasts to channels.

Awesome Lists containing this project

README

        


WeatherGoat Banner

A Discord bot for reporting weather alerts and hourly forecasts to channels. Built with [Bun](https://bun.sh/), [Discord.js](https://discord.js.org/), [Prisma](https://www.prisma.io/), and the [National Weather Service API](https://www.weather.gov/documentation/services-web-api).

## Self-hosting/development

1. Create a `.env` file in the _project root_ directory and fill it out:
```env
MODE=development

BOT_ID=1234
BOT_TOKEN=token_here

# optional
SENTRY_DSN=https://1234.ingest.us.sentry.io/5678

GITHUB_ACCESS_TOKEN=abcdef

MAX_RADAR_MESSAGES_PER_GUILD=5
MAX_ALERT_DESTINATIONS_PER_GUILD=5
MAX_FORECAST_DESTINATIONS_PER_GUILD=5
```
2. Run migrations with `bun migrate:p`
- This won't do anything if there are no pending migrations
3. Register application commands globally with `bun start mc create` or in specific guilds with `bun start mc create `
4. Run the bot with `bun start`