From a53ddbdcc71a60793e1b2d840af3d27f9109072a Mon Sep 17 00:00:00 2001 From: Matsuel Date: Tue, 3 Dec 2024 10:36:41 +0100 Subject: [PATCH 1/2] add chill guy command --- src/commands/fun/chill.ts | 15 +++++++++++++++ src/commands/index.ts | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 src/commands/fun/chill.ts diff --git a/src/commands/fun/chill.ts b/src/commands/fun/chill.ts new file mode 100644 index 0000000..a51ad38 --- /dev/null +++ b/src/commands/fun/chill.ts @@ -0,0 +1,15 @@ +import { CommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js"; + + +export const data: SlashCommandBuilder = new SlashCommandBuilder() + .setName("chill") + .setDescription("Affiche un gif du mec chill"); + +export async function execute(interaction: CommandInteraction): Promise { + const embed = new EmbedBuilder() + .setTitle("Chill") + .setDescription("Gif du mec chill") + .setImage("https://tenor.com/view/chill-guy-my-new-character-gif-2777893510283028272") + + await interaction.reply({ embeds: [embed], ephemeral: false }) +} \ No newline at end of file diff --git a/src/commands/index.ts b/src/commands/index.ts index ee9db44..4aceeb0 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -1,3 +1,4 @@ +import * as chill from "./fun/chill" import * as ping from "./general/ping" import * as info from "./general/info" import * as talk from "./general/talk" @@ -55,6 +56,7 @@ import { skipButton } from "./music/skip" import { loopButton } from "./music/loop" export const commands = { + chill, ping, info, talk, From 637f45927a18df9d69210583f1a25e13080ffc16 Mon Sep 17 00:00:00 2001 From: wiibleyde Date: Tue, 3 Dec 2024 10:41:35 +0100 Subject: [PATCH 2/2] update chill command image URL Signed-off-by: wiibleyde --- src/commands/fun/chill.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/fun/chill.ts b/src/commands/fun/chill.ts index a51ad38..db895e0 100644 --- a/src/commands/fun/chill.ts +++ b/src/commands/fun/chill.ts @@ -9,7 +9,7 @@ export async function execute(interaction: CommandInteraction): Promise { const embed = new EmbedBuilder() .setTitle("Chill") .setDescription("Gif du mec chill") - .setImage("https://tenor.com/view/chill-guy-my-new-character-gif-2777893510283028272") + .setImage("https://media1.tenor.com/m/Jo0PbgBIZzAAAAAd/chill-guy-my-new-character.gif") await interaction.reply({ embeds: [embed], ephemeral: false }) } \ No newline at end of file