Skip to content

Commit

Permalink
Update: add status webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
siwonkh committed Jul 12, 2023
1 parent 4ee4243 commit 2621f2e
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ public void queueErrorLog(String userId, String message, Throwable e) {
errorLogQueue.add(embed);
}

public void queueStatusLog(String message) {
DiscordWebhook.EmbedObject embed = new DiscordWebhook.EmbedObject()
.setTitle("김비서 상태")
.setColor(Color.LIGHT_GRAY)
.addField("message", message, false)
.setFooter(sdf.format(new Date()), "");

errorLogQueue.add(embed);
}

public void queueChatLog(String userId, String userName, String message) {
if (message.length() > 300) {
message = message.substring(0, 300);
Expand Down

0 comments on commit 2621f2e

Please sign in to comment.