Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ app.get('/api/dist/betterdiscord', async c => {
});
});

/*
app.get('/api/dist/vencord', async c => {
const response = await fetch('https://raw.githubusercontent.com/Pitu/Magane/master/dist/magane.vencord.js');
if (!response.ok) return c.json({ message: 'Failed to fetch plugin' }, 500);
Expand All @@ -54,6 +55,7 @@ app.get('/api/dist/vencord', async c => {
}
});
});
*/

app.get('/api/proxy/emoji/:id', async c => {
const { id } = c.req.param();
Expand All @@ -66,7 +68,8 @@ app.get('/api/proxy/emoji/:id', async c => {

const title = /<title[^>]*>([^<]+)<\/title>/.exec(data)?.[1]?.split(' – LINE Emoji | LINE STORE')[0];
const len = (data.match(/FnStickerPreviewItem/g) ?? []).length;
return c.json({ title, id, len });
const hasAnimation = /MdIcoPlay_b/g.test(data);
return c.json({ title, id, len, hasAnimation });
});

app.get('/api/proxy/sticker/:id', async c => {
Expand Down
4 changes: 2 additions & 2 deletions src/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ <h2 class="mb2">My other projects</h2>
</div>
<div class="tabContent">
<div class="content" style="margin-top: 2em;">
<p>If you are a <a href="https://vencord.dev/">Vencord</a> user you need to download the plugin and compile Vencord yourself. You can find out how by following <a href="https://github.com/Pitu/Magane?tab=readme-ov-file#vencord" target="_blank">our guide</a>.
<p class="text-center"><a href="/api/dist/vencord" target="_blank" class="btn btn-primary btn-lg">Download magane.vencord.js</a></p>
<p>If you are a <a href="https://vencord.dev/">Vencord</a> user you need to download the plugin and compile Vencord yourself. You can find out how by following our guide:
<p class="text-center"><a href="https://github.com/Pitu/Magane?tab=readme-ov-file#vencord" target="_blank" class="btn btn-primary btn-lg">How to use in Vencord?</a></p>
</div>
</div>
</div>
Expand Down