skyscraperbot / skyscraper

Discord weather bot deployed to Heroku written in Java built with JDA and Gradle.
https://skyscraperbot.github.io
MIT License
4 stars 0 forks source link

Commands don't always register on build #31

Closed xcesiv closed 1 year ago

xcesiv commented 1 year ago

There is a definite issue with the build process for the application that sometimes when it is ran some of the commands do that register upon build.

It happens in lines 42-45 of DiscordBot.java

            CommandListUpdateAction commands = discordBot.updateCommands();
            commands.addCommands(new AirQualityCommand().getCommandData()).queue();
            commands.addCommands(new WeatherCommand().getCommandData()).queue();
            commands.addCommands(new ForecastCommand().getCommandData()).queue();

Whichever command is currently last on that list sometimes doesn't register and sometimes does when the application launches.