mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
style(): fixed formatting issues
This commit is contained in:
1 parent
f14b1256ff
commit
105dd3570e
5 files changed
+6
-8
No files matched your search
+1
-1
@@ -30,7 +30,7 @@
|
|||||||
"deploy": "node ./dist/utils/deploySlashCommands.js",
|
"deploy": "node ./dist/utils/deploySlashCommands.js",
|
||||||
"predev": "npx prisma generate && npx prisma db push",
|
"predev": "npx prisma generate && npx prisma db push",
|
||||||
"dev": "concurrently --names \"TSC,TOC,BOT\" --prefix-colors \"yellow,blue,green\" \"npx tsc -w\" \"nodemon -w locales/en -x npm run toc\" \"nodemon -x npm run start\"",
|
"dev": "concurrently --names \"TSC,TOC,BOT\" --prefix-colors \"yellow,blue,green\" \"npx tsc -w\" \"nodemon -w locales/en -x npm run toc\" \"nodemon -x npm run start\"",
|
||||||
"eslint": "eslint ./src",
|
"eslint": "eslint ./src --fix",
|
||||||
"prebuild": "npm run toc",
|
"prebuild": "npm run toc",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"toc": "i18next-resources-for-ts interface -i ./locales/en -o ./locales/resources.d.ts",
|
"toc": "i18next-resources-for-ts interface -i ./locales/en -o ./locales/resources.d.ts",
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
import { ExtendedGuildQueuePlayerNode } from '../../types/eventTypes';
|
import { ExtendedGuildQueuePlayerNode } from '../../types/eventTypes';
|
||||||
import { EmbedOptions } from '../../types/configTypes';
|
|
||||||
import { randomUUID as uuidv4 } from 'node:crypto';
|
import { randomUUID as uuidv4 } from 'node:crypto';
|
||||||
import loggerModule from '../../services/logger';
|
import loggerModule from '../../services/logger';
|
||||||
import { Track } from 'discord-player';
|
import { Track } from 'discord-player';
|
||||||
import { Snowflake } from 'discord.js';
|
import { Snowflake } from 'discord.js';
|
||||||
import { Logger } from 'pino';
|
import { Logger } from 'pino';
|
||||||
import config from 'config';
|
|
||||||
|
|
||||||
// Emitted when the audio player finish playing a track.
|
// Emitted when the audio player finish playing a track.
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@@ -38,4 +36,4 @@ module.exports = {
|
|||||||
|
|
||||||
logger.debug('playerFinish event: Previous now-playing message deleted.');
|
logger.debug('playerFinish event: Previous now-playing message deleted.');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -63,10 +63,10 @@ module.exports = {
|
|||||||
queue.metadata.lastMessage = announceMessage;
|
queue.metadata.lastMessage = announceMessage;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(error, `playerStart event: Error trying to send now-playing message.`);
|
logger.error(error, 'playerStart event: Error trying to send now-playing message.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.debug('playerStart event: now-playing message sent.');
|
logger.debug('playerStart event: now-playing message sent.');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -190,7 +190,7 @@ class PlayCommand extends BaseSlashCommandInteraction {
|
|||||||
embedFooter = this.getDisplayFooterTrackPosition(posistionFirstTrackInPlaylist, translator);
|
embedFooter = this.getDisplayFooterTrackPosition(posistionFirstTrackInPlaylist, translator);
|
||||||
}
|
}
|
||||||
} else if (queue.currentTrack === track && queue.tracks.data.length === 0) {
|
} else if (queue.currentTrack === track && queue.tracks.data.length === 0) {
|
||||||
if (!this.embedOptions.behavior.enablePlayerStartMessages) {
|
if (!this.embedOptions.behavior.enablePlayerStartMessages) {
|
||||||
message =
|
message =
|
||||||
translator('musicPlayerCommon.nowPlayingTitle', {
|
translator('musicPlayerCommon.nowPlayingTitle', {
|
||||||
icon: this.embedOptions.icons.audioStartedPlaying
|
icon: this.embedOptions.icons.audioStartedPlaying
|
||||||
|
|||||||
Vendored
+1
-1
@@ -14,4 +14,4 @@ export type ExtendedGuildQueuePlayerNode = {
|
|||||||
channel: BaseGuildTextChannel;
|
channel: BaseGuildTextChannel;
|
||||||
lastMessage: Message;
|
lastMessage: Message;
|
||||||
};
|
};
|
||||||
} & GuildQueuePlayerNode<unknown>;
|
} & GuildQueuePlayerNode<unknown>;
|
||||||
Reference in new issue
Block a user