Skip to content

Commit

Permalink
fix weather being sent to all guilds twice
Browse files Browse the repository at this point in the history
  • Loading branch information
the-codeboy committed Jun 17, 2024
1 parent a6341af commit 141f831
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ public void sendWeatherToAllGuilds() {
}

for (GuildData guildData : data) {
sendWeatherToGuild(guildData.getGuild(), file);
if(guildData.getDefaultMensaId()==id) {
sendWeatherToGuild(guildData.getGuild(), file);
}
}
file.delete();
}
Expand Down

0 comments on commit 141f831

Please sign in to comment.