Skip to content

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

License

Notifications You must be signed in to change notification settings

purpleblueslime/onNotifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks