Fix dropnumber and droprarity commands
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e05059cb9b
commit
fb874be76a
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ export default class Dropnumber extends Command {
|
|||
const imageFileName = card.path.split("/").pop()!;
|
||||
|
||||
try {
|
||||
image = readFileSync(path.join(process.cwd(), 'cards', card.path));
|
||||
image = readFileSync(path.join(process.env.DATA_DIR!, 'cards', card.path));
|
||||
} catch {
|
||||
await interaction.reply(`Unable to fetch image for card ${card.id}`);
|
||||
return;
|
||||
|
|
|
@ -50,7 +50,7 @@ export default class Droprarity extends Command {
|
|||
const imageFileName = card.card.path.split("/").pop()!;
|
||||
|
||||
try {
|
||||
image = readFileSync(path.join(process.cwd(), 'cards', card.card.path));
|
||||
image = readFileSync(path.join(process.env.DATA_DIR!, 'cards', card.card.path));
|
||||
} catch {
|
||||
await interaction.reply(`Unable to fetch image for card ${card.card.id}`);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue