A lightweight and fast javascript wrapper to fetch notifications using anilist.co graphql API.
$ .. install purpleblueslime/onNotifications
import notify from 'notifications';
var notifyBot = new notify();
notifyBot.onReady(() => {});
By default it'll log-
Ready! uwu
notifyBot.onNotification((notif) => {..});
SLIME: func to run on notif.
notifyBot.run(token);
SLIME: token is not optional! duh dummy.
import notify from 'notifications';
var notifyBot = new notify();
notifyBot.onNotification((notif) =>
console.log(notif));
notifyBot.run(token); // Your actual freaking token here..