2.1.9 • Published 11 months ago

discord-anime-scheduler v2.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Discord Anime Scheduler

Notification when a new anime episode airs. Anilist.co

📁 Installation

npm i discord-anime-scheduler@latest

🚦 Initialize the Scheduler

// index.js
const client = new Client(...); // Discord#Client
const Scheduler = require('discord-anime-scheduler');

const sheduler = new Scheduler(client, {
    log: false, // by default: false | Displays various information in the console.
    mongoUri: "", // Required | MongoDB URI
    autoPost: true // by default: true | Auto Send the notification in anime channel.
});
client.scheduler = scheduler;

// ready.js
client.scheduler.init(); // Init the scheduler ! If you don't initialize the scheduler, then it won't start.

🔧 Features

setChannel

Define the channel where notifications will be sent.

scheduler.setChannel(Guild, TextChannel);

addAnime

Add an anime to the anime list. Go to Anilist.co and get:

or

  • Anime Name | Exemple: One Piece

or

  • Anime ID (is in url) | Exemple: 21

scheduler.addAnime(Guild, Anime<id|name|url>);

removeAnime()

Remove an anime from the anime list.

scheduler.removeAnime(Guild, Anime<id|name|url>)
.then(res => console.log(res));

list()

Get server anime list.

scheduler.list(Guild)
.then(list => console.log(list));

setMode()

Set notification mode.

Modes :

  • all | Notifies all Anilist anime broadcasts.
  • list (by default) | Notifies of anime broadcasts from the server's anime list only.
scheduler.setMode(Guild, Mode);

setRole()

Defines the role to be mentioned when notifying an anime on a specific server.

scheduler.setRole(Guild, Role);

delete()

Delete a server from the database.

scheduler.delete(Guild);

☎️ Contact

Discord : Zeleff_#1615

2.1.9

11 months ago

2.0.9

1 year ago

2.1.0

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.0

1 year ago