Skip to content

Commit

Permalink
fix: adjust resources paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilhermeasper committed Sep 17, 2023
1 parent 20bb042 commit 3e2410b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bot/commands/slashCommands/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SlashCommand } from 'src/types';
import { logger } from 'src/utils/logger';
import { playAudio, voiceChannelPresence } from 'src/utils/discord';

const audiosDir = join(__dirname, '../../resources/sounds/');
const audiosDir = join(__dirname, '../../../resources/sounds/');
const audios: string[] = [];

readdirSync(audiosDir).forEach((file) => {
Expand Down
5 changes: 4 additions & 1 deletion src/bot/commands/slashCommands/esroh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export const esroh: SlashCommand = {
interaction.reply({
files: [
{
attachment: join(__dirname, '../../resources/animations/olavac.gif'),
attachment: join(
__dirname,
'../../../resources/animations/olavac.gif'
),
name: 'olavac.gif',
description: 'CONTRARIO',
},
Expand Down
5 changes: 4 additions & 1 deletion src/bot/commands/slashCommands/horse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export const horse: SlashCommand = {
interaction.reply({
files: [
{
attachment: join(__dirname, '../../resources/animations/cavalo.gif'),
attachment: join(
__dirname,
'../../../resources/animations/cavalo.gif'
),
name: 'cavalo.gif',
description: 'CAVALO',
},
Expand Down
2 changes: 1 addition & 1 deletion src/bot/commands/slashCommands/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const time: SlashCommand = {
{
attachment: join(
__dirname,
'../../resources/images/oleodemacaco.png'
'../../../resources/images/oleodemacaco.png'
),
name: 'oleodemacaco.png',
description: 'HORÁRIO OFICIAL',
Expand Down

0 comments on commit 3e2410b

Please sign in to comment.