Fix message formatting hopefully

This commit is contained in:
NovaFox161
2021-11-20 00:57:01 -06:00
parent 393bdc8ba0
commit 833df3efd1
2 changed files with 5 additions and 6 deletions

View File

@@ -59,16 +59,15 @@ object CalendarEmbed : EmbedMaker {
date.key.toInstant().asDiscordTimestamp(DiscordTimestampFormat.LONG_DATE)
)
val content = StringBuilder().append("```\n")
val content = StringBuilder()
date.value.forEach {
content.append(it.start.asDiscordTimestamp(DiscordTimestampFormat.SHORT_TIME))
.append(" - ")
.append(it.end.asDiscordTimestamp(DiscordTimestampFormat.SHORT_TIME))
.append(" | ")
if (it.name.isNotBlank()) content.append(it.name).append(" | ")
content.append(it.eventId).append("\n")
if (it.name.isNotBlank()) content.append("`${it.name}`").append(" | ")
content.append("`${it.eventId}`").append("\n")
}
content.append("```")
builder.addField(fieldTitle, content.toString(), false)
}

View File

@@ -3,9 +3,9 @@ link.field.timezone=Time Zone
link.field.host=Host
link.field.number=Number
link.field.id=ID
link.field.date=%s (Local)
link.field.date={0} (Local)
link.footer.default=View the entire calendar with events by clicking the title
link.footer.update=Last Updated \u22C4 %s
link.footer.update=Last Updated \u22C4 {0}
wizard.title=Calendar Wizard
wizard.field.name=* Name