Implement random.org API integration with random seed updater
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-15 04:26:06 +01:00
parent b81a7e65d2
commit d7aa5d75eb
6 changed files with 98 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ package wtf.beatrice.hidekobot.commands.base;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.User;
import org.random.util.RandomOrgRandom;
import wtf.beatrice.hidekobot.Cache;
import wtf.beatrice.hidekobot.objects.MessageResponse;
import wtf.beatrice.hidekobot.objects.fun.Dice;
@@ -125,6 +126,9 @@ public class DiceRoll
embedBuilder.setAuthor(author.getAsTag(), null, author.getAvatarUrl());
embedBuilder.setTitle("Dice Roll");
if(Cache.getRandom() instanceof RandomOrgRandom)
embedBuilder.setFooter("Seed provided by Random.org");
StringBuilder message = new StringBuilder();
int total = 0;