Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/depthbomb/weathergoat
- Owner: depthbomb
- License: apache-2.0
- Created: 2023-07-23T05:29:46.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-30T21:59:05.000Z (about 2 months ago)
- Last Synced: 2024-10-30T22:27:42.760Z (about 2 months ago)
- Topics: bun, discord, discord-bot, discordjs, typescript, weather, weather-api
- Language: TypeScript
- Homepage:
- Size: 7.27 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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=developmentBOT_ID=1234
BOT_TOKEN=token_here# optional
SENTRY_DSN=https://1234.ingest.us.sentry.io/5678GITHUB_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`