Skip to content

Commit

Permalink
Merge formatting
Browse files Browse the repository at this point in the history
Merge formatting into main
  • Loading branch information
github-actions[bot] authored May 21, 2024
2 parents 8c2eab4 + c5c978a commit 8d03d82
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 18 deletions.
8 changes: 2 additions & 6 deletions src/buttons/gamesActivities/neverhaveiever.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ const button: Button = {

switch (guildDb.customTypes) {
case "regular":
nererhaveIever = shuffle([
...NeverHaveIever
]);
nererhaveIever = shuffle([...NeverHaveIever]);
break;
case "mixed":
nererhaveIever = shuffle([
Expand All @@ -87,9 +85,7 @@ const button: Button = {
break;
}
} else {
nererhaveIever = shuffle([
...NeverHaveIever
]);
nererhaveIever = shuffle([...NeverHaveIever]);
}

const Random = Math.floor(Math.random() * nererhaveIever.length);
Expand Down
8 changes: 2 additions & 6 deletions src/commands/game/neverhaveiever.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ const command: ChatInputCommand = {

switch (guildDb.customTypes) {
case "regular":
nererhaveIever = shuffle([
...NeverHaveIever
]);
nererhaveIever = shuffle([...NeverHaveIever]);
break;
case "mixed":
nererhaveIever = shuffle([
Expand All @@ -70,9 +68,7 @@ const command: ChatInputCommand = {
break;
}
} else {
nererhaveIever = shuffle([
...NeverHaveIever
]);
nererhaveIever = shuffle([...NeverHaveIever]);
}

const Random = Math.floor(Math.random() * nererhaveIever.length);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/settings/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const command: ChatInputCommand = {
{ name: "🇺🇸 English", value: "en_EN" },
{ name: "🇪🇸 Español", value: "es_ES" },
{ name: "🇫🇷 Français", value: "fr_FR" },
{ name: "🇮🇹 Italiano", value: "it_IT" },
{ name: "🇮🇹 Italiano", value: "it_IT" },
),
),

Expand Down
8 changes: 4 additions & 4 deletions src/commands/utility/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const command: ChatInputCommand = {
const commands = await client.application?.commands.fetch({
withLocalizations: true,
});
console.log(commands)
console.log(commands);
const type = languageMappings[guildDb?.language] || "en";
const helpembed = new EmbedBuilder()
.setColor("#0598F6")
Expand Down Expand Up @@ -70,12 +70,12 @@ const command: ChatInputCommand = {
fr: n.descriptionLocalizations.fr,
it: n.descriptionLocalizations.it,
};
const description = descriptionMap[type] || n.description;
return `</${n.name}:${n.id}> - ${description}`;
})
.join("\n")}`,
);

Expand Down
8 changes: 7 additions & 1 deletion src/util/translationHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ export default class TranslationHandler {
* The available languages
* @type {string[]}
*/
this.availableLanguages = languages ?? ["de_DE", "en_EN", "es_ES", "fr_FR", "it_IT"];
this.availableLanguages = languages ?? [
"de_DE",
"en_EN",
"es_ES",
"fr_FR",
"it_IT",
];

/**
* The translations
Expand Down

0 comments on commit 8d03d82

Please sign in to comment.