purpleblueslime / onNotifications

A lightweight and fast javascript wrapper to fetch notifications using anilist.co graphql API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onNotifications

kanna eat ping

A lightweight and fast javascript wrapper to fetch notifications using anilist.co graphql API.

Install

Through terminal

$ .. install purpleblueslime/onNotifications

import

import notify from 'notifications';

new notify()

var notifyBot = new notify();

funcs

onReady(..)

notifyBot.onReady(() => {});

By default it'll log-

Ready! uwu

onNotification(..)

notifyBot.onNotification((notif) => {..});

SLIME: func to run on notif.

run(..)

notifyBot.run(token);

SLIME: token is not optional! duh dummy.

Copy & paste snippet

import notify from 'notifications';

var notifyBot = new notify();

notifyBot.onNotification((notif) =>
  console.log(notif));

notifyBot.run(token); // Your actual freaking token here..

About

A lightweight and fast javascript wrapper to fetch notifications using anilist.co graphql API.

License:MIT License


Languages

Language:JavaScript 100.0%