summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/gateway/src/constants.ts2
-rw-r--r--packages/gateway/tsconfig.json1
-rw-r--r--packages/interactions/server.ts31
-rw-r--r--packages/shared/index.ts30
4 files changed, 32 insertions, 32 deletions
diff --git a/packages/gateway/src/constants.ts b/packages/gateway/src/constants.ts
index 77ef6cd..c660644 100644
--- a/packages/gateway/src/constants.ts
+++ b/packages/gateway/src/constants.ts
@@ -1 +1 @@
-export const GUILD_ID = "1406422617724026901";
+export { GUILD_ID } from "../../shared";
diff --git a/packages/gateway/tsconfig.json b/packages/gateway/tsconfig.json
index c2767fd..e3953f6 100644
--- a/packages/gateway/tsconfig.json
+++ b/packages/gateway/tsconfig.json
@@ -13,7 +13,6 @@
"isolatedModules": true,
"noEmit": false,
"outDir": "./dist",
- "rootDir": "./src",
"declaration": true,
"declarationMap": true,
"sourceMap": true
diff --git a/packages/interactions/server.ts b/packages/interactions/server.ts
index a2618fe..097f69f 100644
--- a/packages/interactions/server.ts
+++ b/packages/interactions/server.ts
@@ -26,42 +26,13 @@ import {
} from "./discord/embeds.ts";
import { JSONResponse } from "./discord/responses.ts";
import { verifyDiscordRequest } from "./discord/verification.ts";
+import { GUILD_ID, COLOR_ROLE_IDS } from "../shared";
const router = AutoRouter();
const COMPLAINT_CHANNEL_ID = "1415868433714778204";
const APPEAL_CHANNEL_ID = "1420340807931531385";
const SERIOUS_ROLEPLAY_ROLE_ID = "1418311833303122021";
const ROLE_MANAGER_ROLE_ID = "1410993207608873070";
-const GUILD_ID = "1406422617724026901";
-const COLOR_ROLE_IDS = [
- "1407075059830624406", // Nice Nature Red
- "1407075160250650664", // Taiki Shuttle Green
- "1407075256904187997", // Mejiro McQueen Purple
- "1407075372427640952", // Gold Ship Grey
- "1407075670177091664", // Grass Wonder Gold
- "1407078154555752589", // Agnes Tachyon Dark Purple
- "1407345006108475476", // Special Week Salmon
- "1408246546708959403", // Biwahaya Hide Linen
- "1408247166413176943", // Symboli Rudolf Celeste
- "1411128003924332764", // King Halo Dark Blue
- "1413582797284708474", // Matikanetannhauser Lemon
- "1414435043761324042", // Silence Suzuka Sea Green
- "1414454914138116158", // Haru Urara Pink
- "1414455824524247161", // TM Opera O Orange
- "1414456352167825490", // Oguri Cap Buttermilk
- "1414541675396862012", // Kitasan Black Sable
- "1415083621152460832", // Tokai Teio Royal Blue
- "1415520343690575883", // Aston Machan Sienna
- "1415539100315942962", // Super Creek Baby Blue
- "1415539544232824913", // Sakura Bakushin O Lilac
- "1415567915578818723", // El Condor Pasa Biscotti
- "1415592658906124338", // Still in Love Crimson
- "1415593126273224795", // Mayano Top Gun Navy Blue
- "1415797242845200475", // Mr. C.B. Forest Green
- "1416583306698297354", // Seuin Sky Mint
- "1416583690217328660", // Neo Universe Pastel Yellow
- "1416595046249267364", // Manhattan Cafe Jet Black
-];
const sendComplaintToChannel = async (
environment: Environment,
diff --git a/packages/shared/index.ts b/packages/shared/index.ts
new file mode 100644
index 0000000..70da8b1
--- /dev/null
+++ b/packages/shared/index.ts
@@ -0,0 +1,30 @@
+export const GUILD_ID = "1406422617724026901";
+export const COLOR_ROLE_IDS = [
+ "1407075059830624406", // Nice Nature Red
+ "1407075160250650664", // Taiki Shuttle Green
+ "1407075256904187997", // Mejiro McQueen Purple
+ "1407075372427640952", // Gold Ship Grey
+ "1407075670177091664", // Grass Wonder Gold
+ "1407078154555752589", // Agnes Tachyon Dark Purple
+ "1407345006108475476", // Special Week Salmon
+ "1408246546708959403", // Biwahaya Hide Linen
+ "1408247166413176943", // Symboli Rudolf Celeste
+ "1411128003924332764", // King Halo Dark Blue
+ "1413582797284708474", // Matikanetannhauser Lemon
+ "1414435043761324042", // Silence Suzuka Sea Green
+ "1414454914138116158", // Haru Urara Pink
+ "1414455824524247161", // TM Opera O Orange
+ "1414456352167825490", // Oguri Cap Buttermilk
+ "1414541675396862012", // Kitasan Black Sable
+ "1415083621152460832", // Tokai Teio Royal Blue
+ "1415520343690575883", // Aston Machan Sienna
+ "1415539100315942962", // Super Creek Baby Blue
+ "1415539544232824913", // Sakura Bakushin O Lilac
+ "1415567915578818723", // El Condor Pasa Biscotti
+ "1415592658906124338", // Still in Love Crimson
+ "1415593126273224795", // Mayano Top Gun Navy Blue
+ "1415797242845200475", // Mr. C.B. Forest Green
+ "1416583306698297354", // Seuin Sky Mint
+ "1416583690217328660", // Neo Universe Pastel Yellow
+ "1416595046249267364", // Manhattan Cafe Jet Black
+];