Please sign in to access this page
A Discord.js bot that gets and sends weather data from OpenWeatherMap.
Commands
- /temp: Gets the current temperature
- /wind: Gets the current wind information
- /conditions: Gets the current weather conditions
- /sun: Gets the sunrise and sunset times
- /info: Information about the bot
- /commands: List of commands
- /weather: Everything in one message
The demo link is an invite to the Discord server, where you can run commands and use the bot.
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
The new /commands command lists and describes commands.
In this time, I also troubleshooted some bugs.
I added /info and /weather. /info displays information about the bot and /weather displays all the data I currently added to the bot.
The new /sun command lists the sunrise and sunset times for the location. I also moved the API key to another file.
I added Feels like to the /temp command.
From the OpenWeather blog:
Simply put, this parameter accounts for the human perception of weather; it lets you know how the temperature ‘feels’.
I added a new /wind command. The bot replies with wind speed (in km/h, m/s or mph) and wind direction. The API provides m/s and mph and km/h is converted from m/s.
I added an option to select either Celsius or Fahrenheit units. The bot requests from the API based on the selected option and displays the data with the correct symbol (°C or °F).
I added the /temp command. This command allows the user to enter a location and the bot will reply with the current temperature.
I followed a tutorial to write basic code to connect my bot to Discord. I am hosting it on Nest and currently adding slash commands.