From 21fba260c7286e1a0ac26bc3c2bb8b93ef17aa38 Mon Sep 17 00:00:00 2001 From: Martin Merfort <395822+mmerfort@users.noreply.github.com> Date: Fri, 7 Apr 2023 14:32:38 +0200 Subject: [PATCH] Correct asset file paths --- .gitignore | 3 ++- assets/NFD/images/.gitkeep | 0 src/commands/NFD.ts | 4 ++-- src/events/CallResponse.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 assets/NFD/images/.gitkeep diff --git a/.gitignore b/.gitignore index cc21948..ab943bd 100644 --- a/.gitignore +++ b/.gitignore @@ -116,4 +116,5 @@ prisma/generated prisma/db/*.db* # Generated "NFD" images -src/assets/NFD/images \ No newline at end of file +assets/NFD/images/* +!assets/NFD/images/.gitkeep diff --git a/assets/NFD/images/.gitkeep b/assets/NFD/images/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/commands/NFD.ts b/src/commands/NFD.ts index 6114f53..6d74494 100644 --- a/src/commands/NFD.ts +++ b/src/commands/NFD.ts @@ -70,8 +70,8 @@ class NFD { private MAX_NFD_PRICE_EXPONENT = 30 - private FRAGMENT_PATH = path.join(__dirname, '../../../assets/NFD/fragments') - private OUTPUT_PATH = path.join(__dirname, '../../../assets/NFD/images') + private FRAGMENT_PATH = path.join(__dirname, '../../assets/NFD/fragments') + private OUTPUT_PATH = path.join(__dirname, '../../assets/NFD/images') private MAX_NFD_LISTED = 25 private MAX_COLLAGE_ITEMS = 25 diff --git a/src/events/CallResponse.ts b/src/events/CallResponse.ts index ab37dfe..5b43bfd 100644 --- a/src/events/CallResponse.ts +++ b/src/events/CallResponse.ts @@ -14,7 +14,7 @@ type CallResponse = { @Discord() abstract class CallAndResponder { - private BasePath = '../../../assets' + private BasePath = '../../assets' // todo: Move these into a json obj and serialize and cache the obj at runtime // Would allow us to add triggers via a mod command should we choose to