From 24b40174df25d6d76be61c60de706e4d359b8184 Mon Sep 17 00:00:00 2001 From: Diego Palacios Date: Thu, 15 Aug 2024 15:08:23 +0200 Subject: [PATCH] feat(listing): small fixes and project image --- scripts/analyze.js | 2 +- scripts/notify-telegram.js | 1 + src/new-token.json | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/analyze.js b/scripts/analyze.js index 7fa2d7f..105cd97 100644 --- a/scripts/analyze.js +++ b/scripts/analyze.js @@ -23,7 +23,7 @@ async function analyze() { const contributors = await getContributors() const currentTokenList = await getCurrentTokenList() - if (!newToken) { + if (newToken?.name.length == 0) { return } diff --git a/scripts/notify-telegram.js b/scripts/notify-telegram.js index c049970..6f84f6d 100644 --- a/scripts/notify-telegram.js +++ b/scripts/notify-telegram.js @@ -40,6 +40,7 @@ ${newToken.bullishSentence} console.log(text) const response = await axios.post(url, { chat_id: chatId, + photo: newToken.projectImage, text: text, parse_mode: 'Markdown', }) diff --git a/src/new-token.json b/src/new-token.json index e654f36..db8de0e 100644 --- a/src/new-token.json +++ b/src/new-token.json @@ -11,5 +11,6 @@ "website": "", "twitter": "", "telegram": "" - } -} \ No newline at end of file + }, + "projectImage": "" +}