Skip to content

Commit

Permalink
Add extra colours
Browse files Browse the repository at this point in the history
  • Loading branch information
CominAtYou committed Mar 15, 2024
1 parent f992955 commit 18bea84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/cominatyou/util/Values.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ public class Values {
public static final Color HILDA_BLUE = new Color(0x008080);
/** Color for success embeds. */
public static final Color SUCCESS_GREEN = new Color(0x77b255);
/** Color for error embeds. */
public static final Color ERROR_RED = new Color(0xed4245);
/** Color for warning embeds. */
public static final Color WARNING_YELLOW = new Color(0xfee75c);
/** The timezone in which {@link com.cominatyou.routinetasks.RoutineTasks routine tasks} should be scheduled in. */
public static final ZoneId TIMEZONE_AMERICA_CHICAGO = ZoneId.of("America/Chicago");
/** A channel within {@code BASE_GUILD_ID} for running bot commands. */
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/cominatyou/xp/XPSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ public static void checkForLevelUp(int beforeActionLevel, User user, Server serv

userEntry.incrementKey("tokens", 40);

final EmbedBuilder errorEmbed = new EmbedBuilder().setColor(Values.HILDA_BLUE)
final EmbedBuilder errorEmbed = new EmbedBuilder()
.setTitle("Failed to assign a role!")
.setDescription("Role assignment for a level up did not complete successfully. Check `hildabot-error.log` for more information.")
.addInlineField("User", String.format("%s (%d)", user.getDiscriminatedName(), user.getId()))
.addInlineField("Role", String.format("%s (%d)", role.getName(), currentLevel))
.setColor(Values.HILDA_BLUE);
.setColor(Values.ERROR_RED);
try {
role.addUser(user).get();
Log.eventf("LEVELUP", "Assigned role %s to %s (%d)\n", role.getName(), user.getDiscriminatedName(), user.getId());
Expand Down

0 comments on commit 18bea84

Please sign in to comment.