Skip to content

Commit

Permalink
Add default "About Me" message
Browse files Browse the repository at this point in the history
  • Loading branch information
WinG4merBR committed Dec 28, 2024
1 parent bb2d6fe commit 34bfbc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class FoxyProfileRender(
val data = context.db.utils.user.getDiscordUser(user.id)
val layoutInfo = layoutCache.get(data.userProfile.layout) { context.db.utils.profile.getLayout(it) }!!
val backgroundInfo = backgroundCache.get(data.userProfile.background) { context.db.utils.profile.getBackground(it) }!!
val userAboutMe = formatAboutMe(data.userProfile.aboutme ?: "", layoutInfo)
val userAboutMe = formatAboutMe(data.userProfile.aboutme ?: context.locale["profile.defaultAboutMe"], layoutInfo)

val layout = loadImage(Constants.PROFILE_LAYOUT(layoutInfo.filename))
val background = loadImage(Constants.PROFILE_BACKGROUND(backgroundInfo.filename))
Expand Down
1 change: 1 addition & 0 deletions foxy/src/main/resources/locales/en-us/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ profile:
marriedWith: "Married to:"
marriedSince: "Since {0}"
view: "{0}'s profile"
defaultAboutMe: "Change your about me using /aboutme command"

kiss:
description: ":heart: **{0} kissed {1}!**"
Expand Down
1 change: 1 addition & 0 deletions foxy/src/main/resources/locales/pt-br/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ profile:
marriedWith: "Casado(a) com:"
marriedSince: "Desde {0}"
view: "Perfil de {0}"
defaultAboutMe: "Use /sobremim para alterar o seu sobre mim"

kiss:
description: ":heart: **{0} beijou {1}!**"
Expand Down

0 comments on commit 34bfbc9

Please sign in to comment.