diff --git a/commands/help.py b/commands/help.py index d69f53f..ea36f92 100644 --- a/commands/help.py +++ b/commands/help.py @@ -118,7 +118,8 @@ async def utils(self, ctx): `{config_selfbot.prefix}snipe`: {langs.help_general_snipe[config_selfbot.lang]} `{config_selfbot.prefix}clear`: {langs.help_general_clear[config_selfbot.lang]} `{config_selfbot.prefix}hype`: {langs.help_general_hype[config_selfbot.lang]} (bravery, brilliance, balance). - `{config_selfbot.prefix}bio`: {langs.help_general_bio[config_selfbot.lang]}.""") + `{config_selfbot.prefix}bio`: {langs.help_general_bio[config_selfbot.lang]}. + `{config_selfbot.prefix}userinfo`: {langs.help_general_user_info[config_selfbot.lang]}""") await asyncio.sleep(config_selfbot.deltime) await ctx.message.delete() diff --git a/commands/utils.py b/commands/utils.py index b1b1cd9..c9ae567 100644 --- a/commands/utils.py +++ b/commands/utils.py @@ -109,4 +109,39 @@ async def bio(self, ctx): await self.bot.user.edit(bio=new_bio) await ctx.message.edit(f"📖 Bio {langs.bio_command[config_selfbot.lang]} \"`{new_bio}`\"") await asyncio.sleep(config_selfbot.deltime) + await ctx.message.delete() + + @commands.command() + async def userinfo(self, ctx): + if ctx.message.mentions: + user = ctx.message.mentions[0] + else: + user = ctx.author + + if user is None: + await ctx.message.edit("Impossible de trouver cet utilisateur.") + return + + if ctx.guild: + guild = ctx.guild + member = guild.get_member(user.id) + roles = [role.name for role in member.roles[1:] if role.name != '@everyone'] if member else [] + else: + roles = [] + + + if roles: + roles_list = f"> 🎭| {langs.info_roles[config_selfbot.lang]}: {', '.join(roles)}\n" + + message = f"""🗒️| {langs.info_title[config_selfbot.lang]} <@{user.id}> : +> 👤| {langs.info_global[config_selfbot.lang]}: `{user.global_name}` +> 🌐| {langs.info_username[config_selfbot.lang]}: `{user.name}` +> 🆔| ID: `{user.id}` +> 🌈| {langs.info_banner[config_selfbot.lang]}: `{user.banner.url if not user.banner is None else langs.empty[config_selfbot.lang]}` +> 📅| {langs.info_created_at[config_selfbot.lang]}: `{user.created_at.strftime('%d/%m/%Y %H:%M:%S')}` +{"> 🖼️| " + langs.info_avatar[config_selfbot.lang] + ": [" + langs.info_avatar_link[config_selfbot.lang] + "](" + user.avatar.url + ")" if not user.avatar is None else langs.empty[config_selfbot.lang]} +{roles_list if ctx.guild else ""}""" + + await ctx.message.edit(message) + await asyncio.sleep(config_selfbot.deltime) await ctx.message.delete() \ No newline at end of file diff --git a/langs.py b/langs.py index 93179da..bf5fdee 100644 --- a/langs.py +++ b/langs.py @@ -45,9 +45,10 @@ "en": "disabled!" } + empty = { "fr": "Aucune", - "en": "Empty" + "en": "None" } author = { @@ -55,6 +56,11 @@ "en": "Author" } +incorrect = { + "fr": "Choix incorrect.", + "en": "Incorrect choice." +} + #################### # launch # # translation !!! # @@ -153,6 +159,11 @@ "en": "Clear given number of messages." } +help_general_user_info = { + "fr": "Renvoie les informations sur l'utilisateur mentionné", + "en": "Return informations about the mentionned user" +} + help_voice_vc = { "fr": "Rejoins le salon vocal", "en": "Join the voice channel" @@ -329,6 +340,46 @@ "en": "is invalid!" } +info_title = { + "fr": "Informations sur", + "en": "Informations about" +} + +info_global = { + "fr": "Nom d'affichage", + "en": "Display name" +} + +info_banner = { + "fr": "Bannière", + "en": "Banner" +} + +info_created_at = { + "fr": "Créé le", + "en": "Created at" +} + +info_avatar = { + "fr": "Photo de profil", + "en": "Avatar" +} + +info_avatar_link = { + "fr": "Lien vers la photo", + "en": "Avatar's link" +} + +info_roles = { + "fr": "Rôles", + "en": "Roles" +} + +info_username = { + "fr": "Nom d'utilisateur", + "en": "Username" +} + raid_in_process = { "fr": "☣️ Raid en cours...", "en": "☣️ Raid in progress..." @@ -396,12 +447,6 @@ - -rpc_status_translate = { - "fr": "Défini le statut du RPC", - "en": "Set RPC's status" -} - rpc_name_translate = { "fr": "Défini le nom du RPC", "en": "Set RPC's name" @@ -427,14 +472,24 @@ "en": "Set RPC's type (game / watch / listen / stream)" } -rpc_id_translate = { - "fr": "Défini l'ID de l'application pour le RPC", - "en": "Set RPC's Application ID" +rpc_large_image_translate = { + "fr": "Défini la grande image du RPC", + "en": "Set RPC's large image" +} + +rpc_large_text_translate = { + "fr": "Défini le texte de la grande image du RPC", + "en": "Set RPC's large image text" +} + +rpc_small_image_translate = { + "fr": "Défini la petite image du RPC", + "en": "Set RPC's small image" } -rpc_image_translate = { - "fr": "Défini l'image du RPC", - "en": "Set RPC's image" +rpc_small_text_translate = { + "fr": "Défini le texte de la petite image du RPC", + "en": "Set RPC's small image text" } rpc_button_text_one_translate = {