Skip to content

Commit

Permalink
dependencies: Update to fiibot-common 4.0.6
Browse files Browse the repository at this point in the history
Switch to common SERVERS_HEADERS constant

Signed-off-by: Woomymy <woomy@woomy.be>
  • Loading branch information
Woomymy committed Feb 2, 2023
1 parent 3d6eee6 commit bf386e0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 33 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@federation-interservices-d-informatique/fiibot-common": "^4.0.4",
"@federation-interservices-d-informatique/fiibot-common": "^4.0.6",
"@prisma/client": "^4.9.0",
"discord.js": "^14.7.1",
"prisma": "^4.9.0"
Expand Down
12 changes: 6 additions & 6 deletions src/events/messageCreate.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { clientEvent } from "@federation-interservices-d-informatique/fiibot-common";
import { Prisma } from "@prisma/client";
import { Message, MessageType, TextChannel } from "discord.js";
import { InterServerClient } from "../classes/InterServerClient";
import {
INTERSERVER_WH_NAME,
clientEvent,
SERVERS_HEADERS,
ServersHeadersKey
} from "../utils/constants.js";
} from "@federation-interservices-d-informatique/fiibot-common";
import { Prisma } from "@prisma/client";
import { Message, MessageType, TextChannel } from "discord.js";
import { InterServerClient } from "../classes/InterServerClient";
import { INTERSERVER_WH_NAME } from "../utils/constants.js";
import { makeReplyEmbed } from "../utils/embeds.js";

export default clientEvent({
Expand Down
12 changes: 6 additions & 6 deletions src/events/messageUpdate.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { clientEvent } from "@federation-interservices-d-informatique/fiibot-common";
import {
clientEvent,
SERVERS_HEADERS,
ServersHeadersKey
} from "@federation-interservices-d-informatique/fiibot-common";
import { Message, MessageType, PartialMessage, TextChannel } from "discord.js";
import { InterServerClient } from "../classes/InterServerClient";
import { MessageCloneData } from "../typings";
import {
INTERSERVER_WH_NAME,
ServersHeadersKey,
SERVERS_HEADERS
} from "../utils/constants.js";
import { INTERSERVER_WH_NAME } from "../utils/constants.js";
import { makeReplyEmbed } from "../utils/embeds.js";

export default clientEvent({
Expand Down
13 changes: 0 additions & 13 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,3 @@
* Name of the interserver webhook
*/
export const INTERSERVER_WH_NAME = "FIIBOT_INTERSERVEUR";

/**
* Server emoji names map
*/
export enum SERVERS_HEADERS {
"622831434427662346" = "<:lpt:970386551945187338> LPT",
"696156347946762240" = "<:mim:970386612162797638> MIM",
"456901919344951298" = "<:cli:970386525906948106> CLI",
"706283053160464395" = "<:hub:970386593405894687> HUB",
"793993155343024160" = "<:hub:970386593405894687> TEST"
}

export type ServersHeadersKey = keyof typeof SERVERS_HEADERS;

0 comments on commit bf386e0

Please # to comment.