diff --git a/bot.py b/bot.py index 59c9eb6..b978b76 100644 --- a/bot.py +++ b/bot.py @@ -109,6 +109,8 @@ async def help(ctx): user = await GetTranslatedText(ctx.guild.id, "user") reason = await GetTranslatedText(ctx.guild.id, "reason") + seconds = await GetTranslatedText(ctx.guild.id, "seconds") + channel = await GetTranslatedText(ctx.guild.id, "channel") embed.add_field( name=await GetTranslatedText(ctx.guild.id, "help_moderation_title"), value=f""" @@ -133,17 +135,22 @@ async def help(ctx): embed.add_field( name=await GetTranslatedText(ctx.guild.id, "help_chatmod_title"), - value=await GetTranslatedText(ctx.guild.id, - "help_chatmod_description", - COMMAND_PREFIX=COMMAND_PREFIX), + value=f""" + {COMMAND_PREFIX}setdelay [{seconds}] <{reason}>\n + {COMMAND_PREFIX}mute [{user}] <{reason}>\n + {COMMAND_PREFIX}unmute [{user}] <{reason}>\n + {COMMAND_PREFIX}lock <{channel}> <{reason}>\n + {COMMAND_PREFIX}unlock <{channel}> <{reason}>\n + {COMMAND_PREFIX}bulkdelete [{channel}] [{user}] <{reason}>", + """, inline=True, ) embed.add_field( name=await GetTranslatedText(ctx.guild.id, "help_various_title"), - value=await GetTranslatedText(ctx.guild.id, - "help_various_description", - COMMAND_PREFIX=COMMAND_PREFIX), + value=f""" + {COMMAND_PREFIX}whois [{user}] + """, inline=True, ) diff --git a/langs/cat.json b/langs/cat.json index 485dbfe..4000c75 100644 --- a/langs/cat.json +++ b/langs/cat.json @@ -3,12 +3,12 @@ "help_moderation_title": "Comandes de Moderació :tools:", "user": "usuari", "reason": "motiu", + "seconds": "segons", + "channel": "canal", "help_automod_title": "Serveis d'AutoMod :robot:", "help_automod_description": "Detecta paraules obscenes i adverteix automàticament. \nUtilitza una base de dades de més de 880 paraules obscenes \n\n Personalitza-ho amb:\n {COMMAND_PREFIX}automod [add/remove] [paraula]\nO activa/desactiva-ho amb:\n{COMMAND_PREFIX}settings [automod] [on/off]", "help_chatmod_title": "Comandes de Moderació de Xat :file_folder:", - "help_chatmod_description": "{COMMAND_PREFIX}setdelay [segons] \n{COMMAND_PREFIX}mute [usuari] \n{COMMAND_PREFIX}unmute [usuari] \n{COMMAND_PREFIX}lock \n{COMMAND_PREFIX}unlock \n", "help_various_title": "Utilitats Diverses :screwdriver:", - "help_various_description": "{COMMAND_PREFIX}whois [usuari]", "help_links_title": "Enllaços Útils: :link:", "help_links_description": "[:classical_building: Suport del Hammer Bot](https://discord.gg/fMSyQA6)\n[:link: Enllaç d'Invitació del Hammer](https://discordapp.com/api/oauth2/authorize?client_id=591633652493058068&permissions=8&scope=bot)\n[:newspaper: Vota per al Hammer](https://top.gg/bot/591633652493058068)]", "help_commands_title": "Comandes d'Ajuda", diff --git a/langs/en.json b/langs/en.json index 2e84f7e..380ad88 100644 --- a/langs/en.json +++ b/langs/en.json @@ -3,12 +3,12 @@ "help_moderation_title": "Moderation Commands :tools:", "user": "user", "reason": "reason", + "seconds": "seconds", + "channel": "channel", "help_automod_title": "AutoMod Services :robot:", "help_automod_description": "Swear Word Detector and wuto warn. \n Using a +880 swear word database \n\n Customize it with:\n {COMMAND_PREFIX}automod [add/remove] [word]\nOr switch it on/off with:\n{COMMAND_PREFIX}settings [automod] [on/off]", "help_chatmod_title": "Chat Moderation Commands :file_folder:", - "help_chatmod_description": "{COMMAND_PREFIX}setdelay [seconds] \n{COMMAND_PREFIX}mute [user] \n{COMMAND_PREFIX}unmute [user] \n{COMMAND_PREFIX}lock \n{COMMAND_PREFIX}unlock \n", "help_various_title": "Various Utilities :screwdriver:", - "help_various_description": "{COMMAND_PREFIX}whois [user]", "help_links_title": "Useful Links: :link:", "help_links_description": "[:classical_building: Hammer Bot Support](https://discord.gg/fMSyQA6)\n[:link: Hammer Invite Link](https://discordapp.com/api/oauth2/authorize?client_id=591633652493058068&permissions=8&scope=bot)\n[:newspaper: Vote Hammer](https://top.gg/bot/591633652493058068)}", "help_commands_title": "Help Commands", diff --git a/langs/es.json b/langs/es.json index 5625af0..e7c7c61 100644 --- a/langs/es.json +++ b/langs/es.json @@ -3,12 +3,12 @@ "help_moderation_title": "Comandos de Moderación :tools:", "user": "usuario", "reason": "razón", + "seconds": "segundos", + "channel": "canal", "help_automod_title": "Servicios de AutoMod :robot:", "help_automod_description": "Detector de lenguaje obsceno con aviso automático. \n Utiliza una base de datos con más de 880 palabras \n\n Personalízalo con:\n {COMMAND_PREFIX}automod [agregar/eliminar] [palabra]\nO activa/desactiva esta función con:\n{COMMAND_PREFIX}configuración [automod] [encender/apagar]", "help_chatmod_title": "Comandos de Moderación de Chat :file_folder:", - "help_chatmod_description": "{COMMAND_PREFIX}setdelay [segundos] \n{COMMAND_PREFIX}mute [usuario] \n{COMMAND_PREFIX}unmute [usuario] \n{COMMAND_PREFIX}lock \n{COMMAND_PREFIX}unlock \n", "help_various_title": "Utilidades Varias :screwdriver:", - "help_various_description": "{COMMAND_PREFIX}whois [usuario]", "help_links_title": "Enlaces Útiles :link:", "help_links_description": "[:classical_building: Soporte de Hammer Bot](https://discord.gg/fMSyQA6)\n[:link: Enlace de Invitación de Hammer Bot](https://discordapp.com/api/oauth2/authorize?client_id=591633652493058068&permissions=8&scope=bot)\n[:newspaper: Vota por Hammer](https://top.gg/bot/591633652493058068)}", "help_commands_title": "Comandos de Ayuda", diff --git a/tests.py b/tests.py index b0b0865..d6664f7 100644 --- a/tests.py +++ b/tests.py @@ -21,12 +21,12 @@ def jsonToDict(filename): "help_moderation_title", "user", "reason", + "seconds", + "channel", "help_automod_title", "help_automod_description", "help_chatmod_title", - "help_chatmod_description", "help_various_title", - "help_various_description", "help_links_title", "help_links_description", "help_commands_title",