Skip to content

Announce new episodes available on Discord using Workers

Notifications You must be signed in to change notification settings

retouching/french-anime-scheduler

Repository files navigation

French Anime Scheduler


Announce when new episodes (in french) are available from ADN and Crunchyroll

Requirements

  • wrangler

Installation

$ git clone "https://github.com/retouching/french-anime-scheduler.git"
$ cd french-anime-scheduler
$ npx wrangler push

Configuration

name = "french-anime-scheduler"
workers_dev = false
main = "src/index.ts"
compatibility_date = "2023-06-05"
kv_namespaces = [
  { binding = "DB", id = "xxx" }
]

[vars]
WEBHOOK_URL = "https://discord.com/api/webhooks/xxx/xxx"
MENTIONS = "xxx,xxx"

[triggers]
crons = ["1,6,11,16,21,26,31,36,41,46,51,56 * * * *"]

name: Name in cloudflare workers panel

workers_dev: Enable RSS page

kv_namespaces: DB to use, you can generate an id token with:

$ wrangler kv:namespace create [DBNAME]

and copy id to config

WEBHOOK_URL: Webhook to use for sending new episodes

MENTIONS: Roles to mention, separate with a coma. (Empty string if no mention needed)

Demo

Warning: Some things need to be considered

  • This project is not approved by ADN and Crunchyroll