Skip to content

Commit

Permalink
Add links to how to change the layout/background and Loritta's daily …
Browse files Browse the repository at this point in the history
…shop on the profile command
  • Loading branch information
MrPowerGamerBR committed Nov 11, 2024
1 parent 5bb6d30 commit 4d6f490
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package net.perfectdreams.loritta.morenitta.interactions.vanilla.social
import dev.minn.jda.ktx.messages.InlineMessage
import dev.minn.jda.ktx.messages.MessageEdit
import net.dv8tion.jda.api.entities.User
import net.dv8tion.jda.api.entities.emoji.Emoji
import net.dv8tion.jda.api.interactions.IntegrationType
import net.dv8tion.jda.api.interactions.components.ActionRow
import net.dv8tion.jda.api.interactions.components.buttons.Button
import net.dv8tion.jda.api.interactions.components.buttons.ButtonStyle
import net.dv8tion.jda.api.interactions.components.text.TextInputStyle
import net.dv8tion.jda.api.utils.FileUpload
Expand Down Expand Up @@ -41,6 +43,7 @@ import net.perfectdreams.loritta.morenitta.utils.AccountUtils
import net.perfectdreams.loritta.morenitta.utils.DateUtils
import net.perfectdreams.loritta.morenitta.utils.RankingGenerator
import net.perfectdreams.loritta.morenitta.utils.extensions.await
import net.perfectdreams.loritta.morenitta.utils.extensions.toJDA
import net.perfectdreams.loritta.serializable.UserId
import org.jetbrains.exposed.sql.ResultRow
import org.jetbrains.exposed.sql.and
Expand Down Expand Up @@ -137,7 +140,25 @@ class ProfileCommand(val loritta: LorittaBot) : SlashCommandDeclarationWrapper {
}
).setReplace(true).await()
}
}
},
Button.of(
ButtonStyle.LINK,
"${loritta.config.loritta.website.url}dashboard/profiles?utm_source=discord&utm_medium=profile-command&utm_campaign=daily-item-shop&utm_content-self-profile",
i18nContext.get(I18nKeysData.Commands.Command.Profileview.ChangeProfileLayout),
Emotes.Eyes.toJDA()
),
Button.of(
ButtonStyle.LINK,
"${loritta.config.loritta.website.url}dashboard/backgrounds?utm_source=discord&utm_medium=profile-command&utm_campaign=daily-item-shop&utm_content-self-profile",
i18nContext.get(I18nKeysData.Commands.Command.Profileview.ChangeBackground),
Emoji.fromUnicode("\uD83D\uDDBC\uFE0F")
),
Button.of(
ButtonStyle.LINK,
"${loritta.config.loritta.website.url}dashboard/daily-shop?utm_source=discord&utm_medium=profile-command&utm_campaign=daily-item-shop&utm_content-self-profile",
i18nContext.get(I18nKeysData.Commands.Command.Profileview.LorittaDailyItemShop),
Emotes.ShoppingBags.toJDA()
)
)
}
}
Expand Down
3 changes: 3 additions & 0 deletions resources/languages/pt/commands/profileview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ examples:
- "@Loritta |-| Veja o perfil da garota mais maravilhosa do Discord!"
- "390927821997998081 |-| Mostra o perfil de um usuário pelo ID"
changeAboutMe: "Alterar Sobre Mim"
changeProfileLayout: "Alterar Layout"
changeBackground: "Alterar Background"
lorittaDailyItemShop: "Loja Diária da Loritta"
profileImageAltText: "Perfil do usuário {user}"
options:
user:
Expand Down

0 comments on commit 4d6f490

Please sign in to comment.