Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
Signed-off-by: TRACTION <[email protected]>
  • Loading branch information
iamtraction committed Sep 28, 2024
1 parent b427194 commit 0a352be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/music/play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class PlayCommand extends Command {
entersState(connection, VoiceConnectionStatus.Connecting, 5_000),
]);
} catch (error) {
Logger.error(error);

// seems to be a real disconnect which SHOULDN'T be recovered from
connection.destroy();

Expand Down
1 change: 1 addition & 0 deletions src/commands/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
import { ApplicationCommandOptionType, ChatInputCommandInteraction } from "discord.js";
import { Command } from "@bastion/tesseract";
// eslint-disable-next-line @typescript-eslint/no-require-imports
import translate = require("@iamtraction/google-translate");

class TranslateCommand extends Command {
Expand Down
1 change: 1 addition & 0 deletions src/utils/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @author TRACTION (iamtraction)
* @copyright 2022
*/
// eslint-disable-next-line no-constant-binary-expression
const frequency = (string: string): { [key: string]: number } => [ ...string ].reduce((a: { [key: string]: number }, c) => (a[c] = a[c] + 1 || 1) && a, {});

const toTitleCase = (string: string, splitSeparator = " ", joinSeprator = " "): string => {
Expand Down

0 comments on commit 0a352be

Please sign in to comment.