From db6f04494a0bc519ad2bfb5388207dbdfa23c8bc Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Date: Wed, 25 Sep 2024 23:06:17 -0300 Subject: [PATCH] Export stickerId to resources --- commands/fun.js | 9 +++++---- props/resources.json | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/commands/fun.js b/commands/fun.js index 902422d..5c0920b 100644 --- a/commands/fun.js +++ b/commands/fun.js @@ -83,8 +83,8 @@ module.exports = (bot) => { }); bot.command('idice', spamwatchMiddleware, async (ctx) => { - const stickerId = "CAACAgQAAxkBAAJxjWbSSP-8ZNEhEpAJjQsHsGf-UuEPAAJCAAPI-uwTAAEBVWWh4ucINQQ"; - ctx.replyWithSticker(stickerId, { + ctx.replyWithSticker( + resources.infiniteDice, { reply_to_message_id: ctx.message.message_id }); }); @@ -99,6 +99,7 @@ module.exports = (bot) => { bot.command('soggy', spamwatchMiddleware, async (ctx) => { const userInput = ctx.message.text.split(' ')[1]; + switch (true) { case (userInput === "2" || userInput === "thumb"): ctx.replyWithPhoto( @@ -110,8 +111,8 @@ module.exports = (bot) => { break; case (userInput === "3" || userInput === "sticker"): - const stickerId = "CAACAgEAAxkBAAJ9SWb0vY0Xgg4RtNQeU5iLOx3iTVRAAAKgAwACN-NRRFf8v9p0Nz1INgQ" - ctx.replyWithSticker(stickerId, { + ctx.replyWithSticker( + resources.soggyCatSticker, { reply_to_message_id: ctx.message.message_id }); break; diff --git a/props/resources.json b/props/resources.json index fb1a120..74700ee 100644 --- a/props/resources.json +++ b/props/resources.json @@ -2,6 +2,8 @@ "lunaCat": "https://telegra.ph/file/0472e60d38376960de1a8.jpg", "soggyCat": "https://soggy.cat/img/soggycat.webp", "soggyCat2": "https://i.kym-cdn.com/photos/images/original/002/705/653/079.jpg", + "soggyCatSticker": "CAACAgEAAxkBAAJ9SWb0vY0Xgg4RtNQeU5iLOx3iTVRAAAKgAwACN-NRRFf8v9p0Nz1INgQ", + "infiniteDice": "CAACAgQAAxkBAAJxjWbSSP-8ZNEhEpAJjQsHsGf-UuEPAAJCAAPI-uwTAAEBVWWh4ucINQQ", "gayFlag": "https://c.tenor.com/VTBe5BFc73sAAAAC/tenor.gif", "furryGif": "https://c.tenor.com/_V_k0BVj48IAAAAd/tenor.gif" } \ No newline at end of file