|
|
|
@ -118,7 +118,7 @@ while (true) {
|
|
|
|
|
let notifs = (await fedi.getNotifications()).data;
|
|
|
|
|
for (const notif of notifs) {
|
|
|
|
|
if (!(respondedNotificationIds.includes(notif.id))) {
|
|
|
|
|
console.log("Recieved new notification!");
|
|
|
|
|
console.log(`Recieved new notification! (ID: ${notif.id})`);
|
|
|
|
|
if (notif.type === "mention") {
|
|
|
|
|
let status = notif.status as Entity.Status;
|
|
|
|
|
if (status.in_reply_to_id) {
|
|
|
|
@ -136,7 +136,6 @@ while (true) {
|
|
|
|
|
statuses[0].account.id ===
|
|
|
|
|
(await fedi.verifyAccountCredentials()).data.id
|
|
|
|
|
) {
|
|
|
|
|
console.log(statuses);
|
|
|
|
|
newMessages.push({
|
|
|
|
|
role: "user",
|
|
|
|
|
content:
|
|
|
|
|