From a9a8b6a750aeb84d57c56f0b0be1d48aaac65a17 Mon Sep 17 00:00:00 2001 From: qugalet Date: Thu, 13 Jul 2023 15:22:12 +0300 Subject: [PATCH] added easter egg --- src/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.ts b/src/index.ts index 0fb0ab4..d7e688b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -79,6 +79,13 @@ async function main() { }); console.log('follow message'); } + if (notification.type === 'mention' && notification.status?.visibility === 'direct') { + await mastodon.v1.statuses.create({ + inReplyToId: notification.status.id, + visibility: 'direct', + status: 'meow' + }); + } }); matrix.on('room.message', async (roomId, event) => { if (