Giter VIP home page Giter VIP logo

anischedule's Introduction

AniSchedule Latest Release

A Discord bot that uses the AniList API to retrieve the airing schedule for configured anime and sends a message when a new episode has aired.

Invite the instance managed by myself by clicking here.

Example Announcement

Commands

Commands are now handled directly through Discord's slash command system. This includes permissions, as well!

When the bot is first added to a server, only /about, /upcoming, and /watching will be available to users. The server owner will need to run /permission <PERMISSION> to enable other commands for anybody else. Editing commands can be limited to either just the owner, a specific role, or the limit can be removed and anybody can use them.

In order to reduce potential spam, commands that take a channel argument will send an ephemeral reply if the channel requested is not the same as the one the command was used in.

Running Yourself

Make sure you have Node.js installed.

Run these commands to get the project locally:

git clone https://github.com/TehNut/AniSchedule.git # or clone your own fork
cd AniSchedule
npm install
npm run build

Create a new .env file in the root directory of the project (the same directory as this README) with the following properties:

Variable Name Type Required Description
$TOKEN String Yes The token for your bot which you can get from Discord's developer panel
$SET_ACTIVITY boolean No Sets bot activity to the number of unique shows it is handling announcements for across all servers
$MODE DEV or any No If set to DEV, commands will be registered to a guild instead of globally. Guild-registered commands are updated instantly, while globally registered commands take up to an hour to sync. Any other value will register commands globally as normal.
$DEV_SERVER_ID number No The server ID to register commands to when MODE is set to DEV.
$STREAM_SITE_ICONS String No A comma separated list of emoji IDs. See here for more.

Finally, run npm run dev to start the bot.

Docker

Create the .env file as you would above and run docker-compose up.

Stream Site Icons

This allows for icons to be displayed next to the site name in the notification embed.

An example entry in the list would be <:amazon:875166861958991912>. To get this value, send a message with the emoji you want to use, but put a \ in front of it. The sent message will display the string necessary. The order in which these should be listed is as follows:

  1. Amazon
  2. AnimeLab
  3. Crunchyroll
  4. Funimation
  5. HiDive
  6. Hulu
  7. Netflix
  8. VRV
  9. YouTube
  10. Bilibili TV
  11. iQIYI

anischedule's People

Contributors

tehnut avatar l11k avatar ckocyigit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.