Skip to content

Commit

Permalink
fix: mail title
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jun 29, 2023
1 parent 2c5f14e commit 673e77a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiAdministrator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,9 @@ public object MiraiAdministrator : SimpleListenerHost() {
launch {
val mail = buildMailContent(session) {
to = AdminMailConfig.offline.ifEmpty { "${AdminSetting.owner}@qq.com" }
title = "机器人下线通知 $bot"
title = if (reconnect) "机器人掉线通知" else "机器人下线通知"
text {
append(bot)
@OptIn(MiraiInternalApi::class)
when (offline) {
is BotOfflineEvent.Active -> {
Expand Down

0 comments on commit 673e77a

Please sign in to comment.