1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:23:12 +00:00

chore: Update strings and embed for the sync command

This commit is contained in:
wlinator 2024-08-28 06:47:20 -04:00
parent 67adfb0df7
commit 17bb34c5af
3 changed files with 15 additions and 4 deletions

View file

@ -239,7 +239,7 @@
"mod_warned_user": "user `{0}` has been warned.",
"ping_author": "I'm online!",
"ping_footer": "Latency: {0}ms",
"ping_pong": "Pong!",
"ping_pong": "pong!",
"ping_uptime": "I've been online since <t:{0}:R>.",
"stats_blackjack": "🃏 | You've played **{0}** games of BlackJack, betting a total of **${1}**. You won **{2}** of those games with a total payout of **${3}**.",
"stats_slots": "🎰 | You've played **{0}** games of Slots, betting a total of **${1}**. Your total payout was **${2}**.",
@ -292,5 +292,7 @@
"give_error_invalid_amount": "invalid amount.",
"give_error_insufficient_funds": "you don't have enough cash.",
"give_success": "**{0}** gave **${1}** to {2}.",
"error_cant_use_buttons": "You can't use these buttons, they're someone else's!"
"error_cant_use_buttons": "You can't use these buttons, they're someone else's!",
"sync_author": "Synced Commands",
"sync_description": "the application command tree has been synced."
}

View file

@ -1,6 +1,8 @@
from discord.ext import commands
import discord
from typing import Optional
from ui.embeds import builder
from lib.const import CONST
class Sync(commands.Cog):
@ -25,7 +27,14 @@ class Sync(commands.Cog):
self.bot.tree.copy_global_to(guild=guild)
await self.bot.tree.sync(guild=guild)
await ctx.send("Application command tree synced.")
embed = builder.create_success_embed(
ctx,
author_text=CONST.STRINGS["sync_author"],
description=CONST.STRINGS["sync_description"],
)
await ctx.send(embed=embed)
async def setup(bot: commands.Bot) -> None:

View file

@ -2,7 +2,7 @@ info:
title: Luminara
author: wlinator
license: GNU General Public License v3.0
version: "2.9.0" # "Settings & Customizability" update
version: "v3.0.1"
repository_url: https://git.wlinator.org/Luminara/Lumi
invite_url: https://discord.com/oauth2/authorize?client_id=1038050427272429588&permissions=8&scope=bot