Skip to content

Commit

Permalink
Merge pull request #433 from NullDev/dependabot/npm_and_yarn/biomejs/…
Browse files Browse the repository at this point in the history
…biome-1.5.3

Bump @biomejs/biome from 1.4.1 to 1.5.3
  • Loading branch information
holzmaster authored Feb 1, 2024
2 parents 7053379 + de09405 commit b568b96
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 58 deletions.
20 changes: 5 additions & 15 deletions .github/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@
"command_prefix": ".",
"mod_prefix": "~"
},
"moderator_roles": [
"Moderader"
],
"moderator_roles": ["Moderader"],
"moderator_id": "893179190709477413",
"ban_reason_channel_id": "893179190881452117",
"woisping_limit": 7200,
"woisping_threshold": 2,
"quotes": {
"emoji_name": "zitat",
"emoji_id": "905042096724017212",
"allowed_group_ids": [
"893179190709477407"
],
"allowed_group_ids": ["893179190709477407"],
"quote_threshold": 2,
"anonymous_channel_ids": [],
"blacklisted_channel_ids": [],
Expand All @@ -30,15 +26,9 @@
},
"delete_thread_messages_in_channels": ["893179191556706384"],
"ehre": {
"emoji_names": [
"ähre",
"aehre",
"pr0aehre"
]
"emoji_names": ["ähre", "aehre", "pr0aehre"]
},
"faulenzerping_allowed_role_ids": [

],
"faulenzerping_allowed_role_ids": [],
"faulenzerping_max_pings": 10,
"faulenzerping_min_required_reactions": 5,
"flame_trusted_user_on_bot_ping": false
Expand All @@ -50,7 +40,7 @@
"banned_role_id": "893179190709477409",
"bday_role_id": "893179190709477416",
"woisgang_role_id": "893179190235508825",
"shame_role_id": "893179190235508822",
"shame_role_id": "893179190235508822",
"winner_role_id": "1045422896740311070",

"bot_deny_role_id": "1025870480374247485",
Expand Down
90 changes: 62 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"sqlite3": "~5.1.7"
},
"devDependencies": {
"@biomejs/biome": "^1.4.1",
"@biomejs/biome": "^1.5.3",
"@ffprobe-installer/ffprobe": "^2.1.2",
"@types/jsdom": "^21.1.6",
"@types/minimist": "^1.2.5",
Expand Down
4 changes: 3 additions & 1 deletion src/commands/faulenzerping.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import {
ActionRowBuilder,
ApplicationCommandType,
CacheType,
Client,
CommandInteraction,
ComponentType,
ContextMenuCommandBuilder,
Message,
Role,
RoleSelectMenuBuilder,
RoleSelectMenuInteraction,
Snowflake,
} from "discord.js";

Expand Down Expand Up @@ -54,7 +56,7 @@ export class FaulenzerPingCommand implements ApplicationCommand {
ephemeral: true,
});

let confirmation;
let confirmation: RoleSelectMenuInteraction<CacheType>;
try {
confirmation = await response.awaitMessageComponent({
filter: i => i.user.id === command.user.id,
Expand Down
15 changes: 6 additions & 9 deletions src/commands/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,13 @@ export class GoogleCommand implements ApplicationCommand {
"+",
)})`;

let reply;
if (!dau) {
reply = replies[Math.floor(Math.random() * replies.length)].replace(
"{0}",
link,
const randomReply = replies[Math.floor(Math.random() * replies.length)];
let reply = randomReply.replace("{0}", link);
if (dau) {
reply = reply.replace(
"{1}",
`${dau?.nickname ?? dau?.displayName}`,
);
} else {
reply = repliesWithUser[Math.floor(Math.random() * replies.length)]
.replace("{0}", link)
.replace("{1}", `${dau?.nickname ?? dau?.displayName}`);
}

const embed = buildEmbed(user, reply);
Expand Down
1 change: 0 additions & 1 deletion src/commands/poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ export const run: CommandFunction = async (_client, message, args, context) => {
const reactionMap: string[] = [];
const reactions: string[][] = [];

// biome-ignore lint/complexity/noForEach: We need the index here
pollOptions.forEach((option, index) => {
reactionMap[index] = option;
reactions[index] = [];
Expand Down
2 changes: 1 addition & 1 deletion src/commands/sdm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const createSecureDecisionMessage = (
// If yes / no
if (options.length === 0) {
const decision = crypto.randomInt(2);
let file;
let file: string;
if (decision) {
embed.setColor(0x2ecc71);
file = "yes.png";
Expand Down
1 change: 0 additions & 1 deletion src/handler/reactionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export default {
if (isStrawpoll) {
if (isDelayedPoll) {
for (const reactionList of delayedPoll.reactions) {
// biome-ignore lint/complexity/noForEach: We need the index here
reactionList.forEach((x, i) => {
if (x === member.id) reactionList.splice(i);
});
Expand Down
2 changes: 1 addition & 1 deletion src/utils/configHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const getConfig = () => {
process.exit(1);
}

let jsonString;
let jsonString: string;
try {
jsonString = fs.readFileSync(configPath, "utf8");
} catch (e) {
Expand Down

0 comments on commit b568b96

Please sign in to comment.