Skip to content

Commit

Permalink
Fixed broken references in remind command
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticFyr3 committed Apr 30, 2024
1 parent d2aa090 commit 3ad8868
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@ object RemindCommand : Command() {
@Argument(name = "vote", optional = true) reminder: String?
) {
val userData = context.getUserData()
val enabled = "Enabled"
val disabled = "Disabled"

if (reminder == null) {
context.reply(
context.embedTemplates.normal(
context.translate("modules.profile.commands.remind.embed.description.base"),
context.translate("modules.profile.commands.remind.embed.title")
context.translate("modules.profile.commands.remind.embed.description.base",
mapOf(
"vote" to if (userData.voteReminder) enabled else disabled
)
),
context.translate("modules.profile.commands.remind.embed.title",
"user" to context.author.asTag
)
).build()
).queue()
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/i18n/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,8 @@ modules:
embed:
description:
base: |-
**Vote**: {{voteStatus}}
**Vote**: {{vote}}
More reminders will be added soon!
disabled: You will no longer receive DMs when your next votes are ready.
enabled: You will now be DMed when your next votes are ready.
Expand Down

0 comments on commit 3ad8868

Please sign in to comment.