Skip to content

Commit

Permalink
Add DOFUS_RETRO and re-order templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Daweyy committed May 6, 2024
1 parent af8a218 commit e8f687c
Showing 1 changed file with 37 additions and 35 deletions.
72 changes: 37 additions & 35 deletions discord.ts
Original file line number Diff line number Diff line change
@@ -1,48 +1,50 @@
import { type ColorResolvable, EmbedBuilder, WebhookClient } from "discord.js";
import { type ICmsArticle, add } from "./haapi";

//in case you want to change the colors
// color per template
const COLORS_TEMPLATES: Record<string, ColorResolvable> = {
NEWS: "#40bb12",
BLOG: "#1334c6",
CHANGELOG: "#c61313",
};

//because we want beautiful names
// beautify site names (if not set, raw template is used)
const SITES_TEMPLATES: Record<string, string> = {
DOFUS_TOUCH: "Dofus Touch",
WAKFU: "Wakfu",
ZAAP_PAGE_WAKFU: "Wakfu",
DOFUS: "Dofus",
ZAAP_PAGE_DOFUS: "Dofus",
ZAAP_PAGE_DOFUSCUBE: "Waven",
WAVEN: "Waven",
LAUNCHER: "Launcher",
OMG: "OneMoreGate",
ZAAP_PAGE_DOFUSRETRO: "Dofus Retro",
ALLSKREEN: "AllSkreen",
KROSMOZ_WEBTOONS: "Webtoons",
LAUNCHER_KROSMOZ: "Krosmoz",
KROSMAGA: "Krosmaga",
ZAAP_PAGE_KROSMAGE: "Krosmaga",
ZAAP_MOBILE: "Zaap Mobile",
ZAAP_GAME_DETAILS: "Zaap Game Details",
ZAAP_SUPERNANOBLASTER: "SuperNanoBlaster",
ZAAP_FLYNN: "Flynn",
KROSMATER: "Krosmaster",
LABEL619: "Label 619",
HEYHEYHEY: "HeyHeyHey",
DOFUS_PETS: "Dofus Pets",
DOFUS_THEMOVIE: "Dofus le Film",
BLOG_MODERATION_DOFUS: "Blog Modération Dofus",
IG_MAGAZINE: "IG Magazine",
WAKFU_SERIES: "Wakfu la Série",
FLYN: "Flynn",
ANKAMA_EVENTS: "Ankama Events",
SLAGE: "Slage",
MINI_WAKFU_MAG: "Mini Wakfu Mag",
MANGA_AKIBA: "Manga Akiba",
WAKFU_TCG: "Wakfu TCG",
ALLSKREEN: "AllSkreen",
ANKAMA_EVENTS: "Ankama Events",
BLOG_MODERATION_DOFUS: "Blog Modération Dofus",
DOFUS: "Dofus",
DOFUS_PETS: "Dofus Pets",
DOFUS_RETRO: "Dofus Retro",
DOFUS_THEMOVIE: "Dofus le Film",
DOFUS_TOUCH: "Dofus Touch",
FLYN: "Flynn",
FLYNN: "Flynn",
HEYHEYHEY: "HeyHeyHey",
IG_MAGAZINE: "IG Magazine",
KROSMAGA: "Krosmaga",
KROSMATER: "Krosmaster",
KROSMOZ_WEBTOONS: "Webtoons",
LABEL619: "Label 619",
LAUNCHER: "Launcher",
LAUNCHER_KROSMOZ: "Krosmoz",
MANGA_AKIBA: "Manga Akiba",
MINI_WAKFU_MAG: "Mini Wakfu Mag",
OMG: "OneMoreGate",
SLAGE: "Slage",
WAKFU: "Wakfu",
WAKFU_SERIES: "Wakfu la Série",
WAKFU_TCG: "Wakfu TCG",
WAVEN: "Waven",
ZAAP_FLYNN: "Flynn",
ZAAP_GAME_DETAILS: "Zaap Game Details",
ZAAP_MOBILE: "Zaap Mobile",
ZAAP_PAGE_DOFUS: "Dofus",
ZAAP_PAGE_DOFUSCUBE: "Waven",
ZAAP_PAGE_DOFUSRETRO: "Dofus Retro",
ZAAP_PAGE_KROSMAGE: "Krosmaga",
ZAAP_PAGE_WAKFU: "Wakfu",
ZAAP_SUPERNANOBLASTER: "SuperNanoBlaster",
};

export async function send(item: ICmsArticle, url: string, threadId: string) {
Expand Down

1 comment on commit e8f687c

@Faareoh
Copy link

@Faareoh Faareoh commented on e8f687c May 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GG

Please sign in to comment.