mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-02-08 04:19:06 -06:00
Fix message formatting hopefully
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user