From ef1ff2b9d68d70aca2bd870df6ab1cdb6a07b6f3 Mon Sep 17 00:00:00 2001 From: Louis Mazin Date: Tue, 28 Jul 2026 09:22:58 +0200 Subject: [PATCH] pbt palcompanion and welcome changes --- commands/bienvenue/welcomeMessage.json | 2 +- commands/palcompanion/palcompanion.js | 18 ++++++++++++++++++ commands/palcompanion/palcompanionMessage.json | 17 +++++++++++++++++ commands/pbt/pbt.js | 6 +++--- .../{programMessage.json => pbtMessage.json} | 2 +- 5 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 commands/palcompanion/palcompanion.js create mode 100644 commands/palcompanion/palcompanionMessage.json rename commands/pbt/{programMessage.json => pbtMessage.json} (88%) diff --git a/commands/bienvenue/welcomeMessage.json b/commands/bienvenue/welcomeMessage.json index 9a6af5c..fc2fdec 100644 --- a/commands/bienvenue/welcomeMessage.json +++ b/commands/bienvenue/welcomeMessage.json @@ -13,7 +13,7 @@ }, { "id": 313857863, - "description": "# **ร€ NE PAS MANQUER DE LA COMMUNAUTร‰**\n\n## **๐Ÿ”น ๐”๐ง ๐ฅ๐จ๐ ๐ข๐œ๐ข๐ž๐ฅ ๐ข๐ง๐๐ข๐ฌ๐ฉ๐ž๐ง๐ฌ๐š๐›๐ฅ๐ž :**\n### Notre excellent modรฉrateur Louis Mazin ร  crรฉer un super outil pour faciliter le breeding de Pals ! ๐Ÿ˜ฑ\n### Si รงa vous intรฉresse, faites **/pbt** ! ๐Ÿ˜‰\n\n## **๐Ÿ”ธ๐”๐ง ๐ฌ๐ž๐ซ๐ฏ๐ž๐ฎ๐ซ ๐๐š๐ฅ๐ฐ๐จ๐ซ๐ฅ๐ ๐œ๐จ๐ฆ๐ฆ๐ฎ๐ง๐š๐ฎ๐ญ๐š๐ข๐ซ๐ž :**\n### Et oui ! Nous avons notre propre serveur Palworld ! ๐Ÿคฉ\n### Si รงa te tente, les infos dont tu as besoin sont juste [ici](https://discord.com/channels/1068240252092813373/1253054206424649822/1351827450287624192) !\n\n## **๐Ÿ”น ๐”๐ง๐ž ๐ฉ๐ž๐ซ๐ฌ๐จ๐ง๐ง๐ž ๐ช๐ฎ๐ข ๐ฌ๐ž ๐ฅ๐š ๐๐จ๐ง๐ง๐ž :**\n### Si tu es sur ce serveur, c'est sans doute grรขce ร  lui, mais je vous le prรฉsente quand mรชme :\n### Notre trรจs cher [Rygain](https://www.youtube.com/Rygain) ! ๐Ÿ‡จ๐Ÿ‡ต\n### Et si tu ne le connais pas, va voir sa chaรฎne.......s'il te plaรฎt ? ๐Ÿฅน", + "description": "# **ร€ NE PAS MANQUER DE LA COMMUNAUTร‰**\n\n## **๐Ÿ”น ๐”๐ง ๐ฅ๐จ๐ ๐ข๐œ๐ข๐ž๐ฅ ๐ข๐ง๐๐ข๐ฌ๐ฉ๐ž๐ง๐ฌ๐š๐›๐ฅ๐ž :**\n### Notre cher Hackman ร  crรฉer un super outil pour faciliter le breeding de Pals ! ๐Ÿ˜ฑ\n### Si รงa vous intรฉresse, faites **/palcompanion** ! ๐Ÿ˜‰\n\n## **๐Ÿ”น ๐”๐ง๐ž ๐ฉ๐ž๐ซ๐ฌ๐จ๐ง๐ง๐ž ๐ช๐ฎ๐ข ๐ฌ๐ž ๐ฅ๐š ๐๐จ๐ง๐ง๐ž :**\n### Si tu es sur ce serveur, c'est sans doute grรขce ร  lui, mais je vous le prรฉsente quand mรชme :\n### Notre trรจs cher [Rygain](https://www.youtube.com/Rygain) ! ๐Ÿ‡จ๐Ÿ‡ต\n### Et si tu ne le connais pas, va voir sa chaรฎne.......s'il te plaรฎt ? ๐Ÿฅน", "color": 2326507, "fields": [] } diff --git a/commands/palcompanion/palcompanion.js b/commands/palcompanion/palcompanion.js new file mode 100644 index 0000000..ac708b9 --- /dev/null +++ b/commands/palcompanion/palcompanion.js @@ -0,0 +1,18 @@ +const { SlashCommandBuilder } = require('discord.js'); +const palcompanionMessage = require("./palcompanionMessage.json") + +module.exports = { + data: new SlashCommandBuilder() + .setName('palcompanion') + .setDescription('Afichez les informations sur le nouveau site de Hackman !') + .addUserOption(option => + option.setName('utilisateur') + .setDescription('Utilisateur ร  mentionner') + .setRequired(false)), + async execute(interaction) { + const user = interaction.options.getUser('utilisateur'); + + palcompanionMessage.content = user ? "||<@"+user.id+">||" : ""; + await interaction.reply(palcompanionMessage); + }, +}; \ No newline at end of file diff --git a/commands/palcompanion/palcompanionMessage.json b/commands/palcompanion/palcompanionMessage.json new file mode 100644 index 0000000..d8452a3 --- /dev/null +++ b/commands/palcompanion/palcompanionMessage.json @@ -0,0 +1,17 @@ +{ + "content": "", + "tts": false, + "embeds": [ + { + "id": 313857863, + "description": "# **LE SITE DE HACKMAN**\n\n## Un nouveau site a vu le jour pour la 1.0 de Palworld ! ๐Ÿ˜\n\n### J'ai dรฉjร  expliquรฉ ce qu'il est possible de faire avec [ici](https://discord.com/channels/1068240252092813373/1253054206424649822/1531421959056003114) ๐Ÿ˜Ž\n\n## Allez le consulter : [Pal Companion](https://palcompanion.com) ๐Ÿ™Œ", + "color": 2326507, + "fields": [] + } + ], + "components": [], + "actions": {}, + "flags": 0, + "username": "Couteau Suisse", + "avatar_url": "https://srv.latostadora.com/designall.dll/couteau-suisse---dessin-drole-sketchy--i:141385141697014138520;d:1416970;w:520;b:FFFFFF;m:1.jpg" +} \ No newline at end of file diff --git a/commands/pbt/pbt.js b/commands/pbt/pbt.js index f42ad28..a91fd31 100644 --- a/commands/pbt/pbt.js +++ b/commands/pbt/pbt.js @@ -1,5 +1,5 @@ const { SlashCommandBuilder } = require('discord.js'); -const programMessage = require("./programMessage.json") +const pbtMessage = require("./pbtMessage.json") module.exports = { data: new SlashCommandBuilder() @@ -12,7 +12,7 @@ module.exports = { async execute(interaction) { const user = interaction.options.getUser('utilisateur'); - programMessage.content = user ? "||<@"+user.id+">||" : ""; - await interaction.reply(programMessage); + pbtMessage.content = user ? "||<@"+user.id+">||" : ""; + await interaction.reply(pbtMessage); }, }; \ No newline at end of file diff --git a/commands/pbt/programMessage.json b/commands/pbt/pbtMessage.json similarity index 88% rename from commands/pbt/programMessage.json rename to commands/pbt/pbtMessage.json index e48afbf..f851c0e 100644 --- a/commands/pbt/programMessage.json +++ b/commands/pbt/pbtMessage.json @@ -4,7 +4,7 @@ "embeds": [ { "id": 313857863, - "description": "# **LE PROGRAMME DE LOUIS**\n\n## Merci d'avoir fait confiance ร  mon travail !:heart:\n\n### Malheureusement cette application ne sera plus disponible, et plus mise ร  jour.\n### Toutes les informations sont [ici](https://discord.com/channels/1068240252092813373/1253054206424649822/1520122821047619685)", + "description": "# **LE PROGRAMME DE LOUIS**\n\n## Merci d'avoir fait confiance ร  mon travail !:heart:\n\n### Malheureusement cette application ne sera plus disponible, et plus mise ร  jour.\n### Toutes les informations sont [ici](https://discord.com/channels/1068240252092813373/1253054206424649822/1520122821047619685)\n\n## Si vous cherchez une alternative, faites `/palcompanion`! (de rien) ๐Ÿ‘€", "color": 2326507, "fields": [] }