aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.glitch-assets2
-rw-r--r--bot.js13
2 files changed, 15 insertions, 0 deletions
diff --git a/.glitch-assets b/.glitch-assets
index 0fef847..8f9ff69 100644
--- a/.glitch-assets
+++ b/.glitch-assets
@@ -14,3 +14,5 @@
{"uuid":"adSBq97hhhpFNUnc","deleted":true}
{"uuid":"oeXMbnr7ddvY8zWv","deleted":true}
{"name":"CrabRaveOtamatoneBackground.png","date":"2019-08-21T02:31:42.285Z","url":"https://cdn.glitch.com/70ea37b5-d264-46e5-a1db-29c786c86515%2FCrabRaveOtamatoneBackground.png","type":"image/png","size":261975,"imageWidth":848,"imageHeight":480,"thumbnail":"https://cdn.glitch.com/70ea37b5-d264-46e5-a1db-29c786c86515%2Fthumbnails%2FCrabRaveOtamatoneBackground.png","thumbnailWidth":330,"thumbnailHeight":187,"uuid":"ZylMJsdmY8Kp9wF5"}
+{"name":"CrabRaveGarfield.mp4","date":"2019-11-30T19:49:34.116Z","url":"https://cdn.glitch.com/70ea37b5-d264-46e5-a1db-29c786c86515%2FCrabRaveGarfield.mp4","type":"video/mp4","size":1427547,"thumbnail":"https://cdn.glitch.com/70ea37b5-d264-46e5-a1db-29c786c86515%2Fthumbnails%2FCrabRaveGarfield.mp4","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"B5cjk7koYwboSsnw"}
+{"name":"CrabRaveGarfieldBackground.png","date":"2019-11-30T19:50:34.563Z","url":"https://cdn.glitch.com/70ea37b5-d264-46e5-a1db-29c786c86515%2FCrabRaveGarfieldBackground.png","type":"image/png","size":270046,"imageWidth":848,"imageHeight":480,"thumbnail":"https://cdn.glitch.com/70ea37b5-d264-46e5-a1db-29c786c86515%2Fthumbnails%2FCrabRaveGarfieldBackground.png","thumbnailWidth":330,"thumbnailHeight":187,"uuid":"E59nv9dhCqeq5937"}
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:
<input type="radio" id="classic" name="style" value="classic" checked><label for="classic">Classic</label>
<input type="radio" id="otamatone" name="style" value="otamatone"><label for="otamatone">Otamatone</label> (<a href="https://youtu.be/VI5I3MuKJlo">original</a> by TheRealSullyG)
+ <input type="radio" id="garfield" name="style" value="garfield"><label for="garfield">Garfield</label> (<a href="https://twitter.com/jondancesto/status/1199796307218427904">original</a> by @jondancesto)
</p>
<input type="submit" value="Overlay!">
</form>