From fada0a794833f49f2d7b5287b6d55279811c2434 Mon Sep 17 00:00:00 2001 From: "Glitch (adventurous-damselfly)" Date: Sat, 30 Nov 2019 19:54:21 +0000 Subject: =?UTF-8?q?=F0=9F=8C=9D=F0=9F=8E=8B=20Updated=20with=20Glitch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bot.js') diff --git a/bot.js b/bot.js index 7c94fcf..f28aa1b 100644 --- a/bot.js +++ b/bot.js @@ -29,6 +29,10 @@ const STYLES = { 'video': 'https://cdn.glitch.com/70ea37b5-d264-46e5-a1db-29c786c86515%2FCrabRaveOtamatone.mp4?v=1566354239409', 'thumb': 'https://cdn.glitch.com/70ea37b5-d264-46e5-a1db-29c786c86515%2FCrabRaveOtamatoneBackground.png?v=1566354702285', }, + 'garfield': { + 'video': 'https://cdn.glitch.com/70ea37b5-d264-46e5-a1db-29c786c86515%2FCrabRaveGarfield.mp4?v=1575143374116', + 'thumb': 'https://cdn.glitch.com/70ea37b5-d264-46e5-a1db-29c786c86515%2FCrabRaveGarfieldBackground.png?v=1575143434563', + }, } // inline query @@ -53,6 +57,14 @@ bot.on('inline_query', async ({ inlineQuery, answerInlineQuery }) => { thumb_url: "https://" + process.env.PROJECT_DOMAIN + ".glitch.me/video/" + encodeURIComponent(query) + ".png?v1&style=otamatone", title: 'Otamatone (original by TheRealSullyG)' }, + { + type: "video", + id: "garfield", + video_url: "https://" + process.env.PROJECT_DOMAIN + ".glitch.me/video/" + encodeURIComponent(query) + ".mp4?v1&style=garfield", + mime_type: "video/mp4", + thumb_url: "https://" + process.env.PROJECT_DOMAIN + ".glitch.me/video/" + encodeURIComponent(query) + ".png?v1&style=garfield", + title: 'Garfield (original by @jondancesto)' + }, ]; return answerInlineQuery(result); } @@ -88,6 +100,7 @@ module.exports = { Style: (original by TheRealSullyG) + (original by @jondancesto)

-- cgit v1.2.3