Skip to content

RainDance is a Discord bot that forecasts the weather for the next hour at a set time interval.

Notifications You must be signed in to change notification settings

mvaal/rain-dance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RainDance Discord Bot

RainDance is a Discord bot that forecasts the weather for the next hour at a set time interval.

This was primarily written to keep track of PoGo weather changes, but may have other uses.

Commands

  • rd!start latitude,longitude
    • latitude and longitude of the location you wish to track
  • rd!stop
    • stop bot from running
  • rd!commands
    • display available commands

Setup

Discord

Create bot

Create a RainDance app in your Discord Apps.

Add bot to server

Client ID is located under APP DETAILS panel

https://discordapp.com/oauth2/authorize?&client_id=<CLIENT ID>&scope=bot&permissions=0

RainDanceBot

In main/resources add application.conf

{
  "discord": {
    "token": <discord-bot-token>
  }
}

AccuWeather

In main/resources add accuweather.conf

{
  "accuweather": {
    "apikey": <api-key>
  }
}

Running

From IDE, run:

AccuWeatherRainDanceBotRunner

Known Issues/Missing Features

  • App/Docker support to run outside IDE
  • Forecast runs on the :45 and not on the hour
  • State persistence after shutdown/restart
  • Weather change alert when weather changes from a previous state
  • Ability to make this a public bot
    • Probably not possible due to the fact that heavily used API keys are not free

About

RainDance is a Discord bot that forecasts the weather for the next hour at a set time interval.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages