import { createRestAPIClient } from "npm:masto";
const masto = createRestAPIClient({
url: Deno.env.get("MASTO_INSTANCE_URL"),
accessToken: Deno.env.get("MASTO_ACCESS_TOKEN"),
});
const notifications = await masto.v1.notifications.list({
types: ["mention"],
limit: 10,
});
console.log(notifications);
Deno.exit(0);