Export stickerId to resources

This commit is contained in:
Lucas Gabriel 2024-09-25 23:06:17 -03:00
parent 863f3a8bca
commit db6f04494a
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985
2 changed files with 7 additions and 4 deletions

View File

@ -83,8 +83,8 @@ module.exports = (bot) => {
}); });
bot.command('idice', spamwatchMiddleware, async (ctx) => { bot.command('idice', spamwatchMiddleware, async (ctx) => {
const stickerId = "CAACAgQAAxkBAAJxjWbSSP-8ZNEhEpAJjQsHsGf-UuEPAAJCAAPI-uwTAAEBVWWh4ucINQQ"; ctx.replyWithSticker(
ctx.replyWithSticker(stickerId, { resources.infiniteDice, {
reply_to_message_id: ctx.message.message_id reply_to_message_id: ctx.message.message_id
}); });
}); });
@ -99,6 +99,7 @@ module.exports = (bot) => {
bot.command('soggy', spamwatchMiddleware, async (ctx) => { bot.command('soggy', spamwatchMiddleware, async (ctx) => {
const userInput = ctx.message.text.split(' ')[1]; const userInput = ctx.message.text.split(' ')[1];
switch (true) { switch (true) {
case (userInput === "2" || userInput === "thumb"): case (userInput === "2" || userInput === "thumb"):
ctx.replyWithPhoto( ctx.replyWithPhoto(
@ -110,8 +111,8 @@ module.exports = (bot) => {
break; break;
case (userInput === "3" || userInput === "sticker"): case (userInput === "3" || userInput === "sticker"):
const stickerId = "CAACAgEAAxkBAAJ9SWb0vY0Xgg4RtNQeU5iLOx3iTVRAAAKgAwACN-NRRFf8v9p0Nz1INgQ" ctx.replyWithSticker(
ctx.replyWithSticker(stickerId, { resources.soggyCatSticker, {
reply_to_message_id: ctx.message.message_id reply_to_message_id: ctx.message.message_id
}); });
break; break;

View File

@ -2,6 +2,8 @@
"lunaCat": "https://telegra.ph/file/0472e60d38376960de1a8.jpg", "lunaCat": "https://telegra.ph/file/0472e60d38376960de1a8.jpg",
"soggyCat": "https://soggy.cat/img/soggycat.webp", "soggyCat": "https://soggy.cat/img/soggycat.webp",
"soggyCat2": "https://i.kym-cdn.com/photos/images/original/002/705/653/079.jpg", "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", "gayFlag": "https://c.tenor.com/VTBe5BFc73sAAAAC/tenor.gif",
"furryGif": "https://c.tenor.com/_V_k0BVj48IAAAAd/tenor.gif" "furryGif": "https://c.tenor.com/_V_k0BVj48IAAAAd/tenor.gif"
} }