From d5b0119a8b395234d5cbc251617159937e8ec050 Mon Sep 17 00:00:00 2001 From: Vivien Mouret Date: Fri, 29 Dec 2023 19:05:01 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20better=20response=20(i=20guess)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- response/laugh.js | 10 +++++++++- response/mais.js | 9 --------- response/no.js | 2 +- response/tqt.js | 9 --------- response/yes.js | 2 +- resx/lang.json | 6 +++--- 6 files changed, 14 insertions(+), 24 deletions(-) delete mode 100644 response/mais.js delete mode 100644 response/tqt.js diff --git a/response/laugh.js b/response/laugh.js index aa7a5e1..0cd7955 100644 --- a/response/laugh.js +++ b/response/laugh.js @@ -1,9 +1,17 @@ 'use.strict' +const { EmbedBuilder } = require('discord.js'); + module.exports = { data: { name: 'hahaha', description: 'a dynamic reply' }, - async execute(message, args, language) { await message.channel.send(language.replyAgg); } + async execute(message, args, language) { + let reply = new EmbedBuilder() + .setDescription(language.replyLaugh) + .setImage('https://media2.giphy.com/media/jQmVFypWInKCc/giphy.gif?cid=ecf05e4718162bqt0bq1i56jd38ym14f26scslk3pmmnaqbb&ep=v1_gifs_search&rid=giphy.gif&ct=g'); + + await message.channel.send({ embeds: [reply] }); + } }; \ No newline at end of file diff --git a/response/mais.js b/response/mais.js deleted file mode 100644 index 98c66c0..0000000 --- a/response/mais.js +++ /dev/null @@ -1,9 +0,0 @@ -'use.strict' - -module.exports = { - data: { - name: 'mais', - description: 'a dynamic reply' - }, - async execute(message, args, language) { await message.channel.send(language.replyMais); } -}; \ No newline at end of file diff --git a/response/no.js b/response/no.js index 9536df0..5af73d7 100644 --- a/response/no.js +++ b/response/no.js @@ -9,7 +9,7 @@ module.exports = { }, async execute(message, args, language) { let reply = new EmbedBuilder() - .setDescription('NO NO NO') + .setDescription(language.replyNo) .setImage('https://i.pinimg.com/originals/da/eb/26/daeb26a70a817fbeef6f8e3b5c9baee1.gif'); await message.channel.send({ embeds: [reply] }); diff --git a/response/tqt.js b/response/tqt.js deleted file mode 100644 index 2c3965f..0000000 --- a/response/tqt.js +++ /dev/null @@ -1,9 +0,0 @@ -'use.strict' - -module.exports = { - data: { - name: 'tqt', - description: 'a dynamic reply' - }, - async execute(message, args, language) { await message.channel.send(language.replyWorried); } -}; \ No newline at end of file diff --git a/response/yes.js b/response/yes.js index e9cd96b..e3aec50 100644 --- a/response/yes.js +++ b/response/yes.js @@ -9,7 +9,7 @@ module.exports = { }, async execute(message, args, language) { let reply = new EmbedBuilder() - .setDescription('YES YES YES') + .setDescription(language.replyYes) .setImage('https://i.pinimg.com/originals/80/ca/e3/80cae3013cf2513e3cef9179f7d64073.gif'); await message.channel.send({ embeds: [reply] }); diff --git a/resx/lang.json b/resx/lang.json index 177742a..3a7431d 100644 --- a/resx/lang.json +++ b/resx/lang.json @@ -29,10 +29,10 @@ "pruneOut": "Donnes moi un nombre entre 1 et 100", "pingWait": "AAAAAAAATTTEEEEEEENNNNNNNNNNNNNDDDDDDDDDSSSSSSSSSSSSS!!!!", "pingEdit": "Latence de", - "replyAgg": "ta gueule", + "replyLaugh": "hahaha", "replyBot": "...", - "replyMais": "chant", - "replyWorried": "oui je m\\'inquiète pour toi...", + "replyYes": "chant", + "replyNo": "oui je m\\'inquiète pour toi...", "descLiveSt": "À l'instant présent, le live du petit", "descLiveNd": "vient de se lancer !", "guildJoin": "vient de rejoindre la galaxie !",