feat : ajout download backup

This commit is contained in:
2026-03-09 10:50:41 +01:00
parent 850375ea93
commit db738715c3
15 changed files with 671 additions and 76 deletions

View File

@@ -0,0 +1,15 @@
export default defineEventHandler(async () => {
const token = process.env.DISCORD_BOT_TOKEN
const channel = process.env.DISCORD_CHANNEL_ID
const messages = await $fetch(
`https://discord.com/api/v10/channels/${channel}/messages?limit=20`,
{
headers: {
Authorization: `Bot ${token}`
}
}
)
return messages
})