Skip to content

Commit 9fc8c2c

Browse files
committed
biome check --apply ./src
1 parent 0489be1 commit 9fc8c2c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+296
-289
lines changed

package.json

+60-60
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
11
{
2-
"name": "csz-bot",
3-
"private": true,
4-
"version": "0.1.0",
5-
"description": "Offizieller Bot der Coding Shitpost Zentrale",
6-
"main": "built/app.js",
7-
"type": "module",
8-
"scripts": {
9-
"start": "node --es-module-specifier-resolution=node built/app.js",
10-
"test": "tsc --noEmit",
11-
"compile": "tsc --sourceMap false --removeComments true",
12-
"ci": "biome ci ./",
13-
"format": "biome format --write ./",
14-
"lint": "biome lint ./",
15-
"lint:fix": "biome lint --apply ./",
16-
"watch": "concurrently -k -c 'cyan,green' \"tsc -w\" \"node --watch built/app.js\""
17-
},
18-
"repository": {
19-
"type": "git",
20-
"url": "git+https://github.com/NullDev/CSZ-Bot.git"
21-
},
22-
"author": "Users of the CSZ",
23-
"license": "MIT",
24-
"bugs": {
25-
"url": "https://github.com/NullDev/CSZ-Bot/issues"
26-
},
27-
"homepage": "https://github.com/NullDev/CSZ-Bot#readme",
28-
"dependencies": {
29-
"@discordjs/voice": "^0.16.1",
30-
"@napi-rs/canvas": "^0.1.51",
31-
"@resvg/resvg-js": "^2.6.0",
32-
"chrono-node": "^2.7.5",
33-
"croner": "^8.0.1",
34-
"discord.js": "^14.14.1",
35-
"get-audio-duration": "^4.0.1",
36-
"graphviz-wasm": "^3.0.1",
37-
"instagram-url-direct": "^1.0.13",
38-
"jsdom": "^24.0.0",
39-
"libsodium-wrappers": "^0.7.13",
40-
"minimist": "^1.2.8",
41-
"moment": "^2.30.1",
42-
"pino": "^8.19.0",
43-
"sequelize": "^6.37.1",
44-
"splid-js": "^1.1.1",
45-
"sqlite3": "~5.1.7"
46-
},
47-
"devDependencies": {
48-
"@biomejs/biome": "^1.6.0",
49-
"@ffprobe-installer/ffprobe": "^2.1.2",
50-
"@types/jsdom": "^21.1.6",
51-
"@types/minimist": "^1.2.5",
52-
"@types/node": "^20.11.25",
53-
"@types/node-cron": "^3.0.11",
54-
"@types/sqlite3": "^3.1.11",
55-
"concurrently": "^8.2.2",
56-
"pino-pretty": "^10.3.1",
57-
"typescript": "^5.4.2"
58-
},
59-
"engines": {
60-
"node": ">=21.1.0"
61-
}
2+
"name": "csz-bot",
3+
"private": true,
4+
"version": "0.1.0",
5+
"description": "Offizieller Bot der Coding Shitpost Zentrale",
6+
"main": "built/app.js",
7+
"type": "module",
8+
"scripts": {
9+
"start": "node --es-module-specifier-resolution=node built/app.js",
10+
"test": "tsc --noEmit",
11+
"compile": "tsc --sourceMap false --removeComments true",
12+
"ci": "biome ci ./",
13+
"format": "biome format --write ./",
14+
"lint": "biome lint ./",
15+
"lint:fix": "biome lint --apply ./",
16+
"watch": "concurrently -k -c 'cyan,green' \"tsc -w\" \"node --watch built/app.js\""
17+
},
18+
"repository": {
19+
"type": "git",
20+
"url": "git+https://github.com/NullDev/CSZ-Bot.git"
21+
},
22+
"author": "Users of the CSZ",
23+
"license": "MIT",
24+
"bugs": {
25+
"url": "https://github.com/NullDev/CSZ-Bot/issues"
26+
},
27+
"homepage": "https://github.com/NullDev/CSZ-Bot#readme",
28+
"dependencies": {
29+
"@discordjs/voice": "^0.16.1",
30+
"@napi-rs/canvas": "^0.1.51",
31+
"@resvg/resvg-js": "^2.6.0",
32+
"chrono-node": "^2.7.5",
33+
"croner": "^8.0.1",
34+
"discord.js": "^14.14.1",
35+
"get-audio-duration": "^4.0.1",
36+
"graphviz-wasm": "^3.0.1",
37+
"instagram-url-direct": "^1.0.13",
38+
"jsdom": "^24.0.0",
39+
"libsodium-wrappers": "^0.7.13",
40+
"minimist": "^1.2.8",
41+
"moment": "^2.30.1",
42+
"pino": "^8.19.0",
43+
"sequelize": "^6.37.1",
44+
"splid-js": "^1.1.1",
45+
"sqlite3": "~5.1.7"
46+
},
47+
"devDependencies": {
48+
"@biomejs/biome": "^1.6.0",
49+
"@ffprobe-installer/ffprobe": "^2.1.2",
50+
"@types/jsdom": "^21.1.6",
51+
"@types/minimist": "^1.2.5",
52+
"@types/node": "^20.11.25",
53+
"@types/node-cron": "^3.0.11",
54+
"@types/sqlite3": "^3.1.11",
55+
"concurrently": "^8.2.2",
56+
"pino-pretty": "^10.3.1",
57+
"typescript": "^5.4.2"
58+
},
59+
"engines": {
60+
"node": ">=21.1.0"
61+
}
6262
}

src/app.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import * as Discord from "discord.js";
22
import {
3-
Message,
3+
type Message,
44
MessageReaction,
55
User,
6-
VoiceState,
6+
type VoiceState,
77
GatewayIntentBits,
88
Partials,
9-
Client,
9+
type Client,
1010
} from "discord.js";
1111
import cron from "croner";
1212

src/commands/aoc.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import * as fs from "node:fs/promises";
22
import * as path from "node:path";
33

44
import {
5-
CacheType,
6-
CommandInteraction,
5+
type CacheType,
6+
type CommandInteraction,
77
SlashCommandBuilder,
88
SlashCommandStringOption,
99
} from "discord.js";
10-
import * as discord from "discord.js";
10+
import type * as discord from "discord.js";
1111

1212
import type { BotContext } from "../context.js";
1313
import type { ApplicationCommand } from "./command.js";

src/commands/banlist.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
2-
CacheType,
3-
Client,
4-
CommandInteraction,
2+
type CacheType,
3+
type Client,
4+
type CommandInteraction,
55
TimestampStyles,
66
time,
77
} from "discord.js";

src/commands/boobs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client, User } from "discord.js";
1+
import type { Client, User } from "discord.js";
22

33
import type { ProcessableMessage } from "../handler/cmdHandler.js";
44
import type { CommandResult, MessageCommand } from "./command.js";

src/commands/clap.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
2-
CacheType,
3-
Client,
4-
CommandInteraction,
5-
GuildMember,
6-
Message,
2+
type CacheType,
3+
type Client,
4+
type CommandInteraction,
5+
type GuildMember,
6+
type Message,
77
EmbedBuilder,
88
SlashCommandBuilder,
99
SlashCommandStringOption,

src/commands/command.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {
1+
import type {
22
ContextMenuCommandBuilder,
33
MessageComponentInteraction,
44
PermissionsString,
5-
type SlashCommandBuilder,
5+
SlashCommandBuilder,
66
} from "discord.js";
77
import type {
88
AutocompleteInteraction,

src/commands/ehre.ts

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
import {
2-
Client,
3-
CommandInteraction,
4-
InteractionReplyOptions,
5-
MessagePayload,
6-
MessageReaction,
2+
type Client,
3+
type CommandInteraction,
4+
type InteractionReplyOptions,
5+
type MessagePayload,
6+
type MessageReaction,
77
SlashCommandBuilder,
88
SlashCommandSubcommandBuilder,
99
SlashCommandUserOption,
10-
TextChannel,
11-
User,
10+
type TextChannel,
11+
type User,
1212
} from "discord.js";
1313

1414
import type { ApplicationCommand, CommandResult } from "./command.js";
1515
import type { BotContext } from "../context.js";
16-
import { EhreGroups, EhrePoints, EhreVotes } from "../storage/model/Ehre.js";
16+
import {
17+
type EhreGroups,
18+
EhrePoints,
19+
EhreVotes,
20+
} from "../storage/model/Ehre.js";
1721

1822
const ehreFormatter = new Intl.NumberFormat("de-DE", {
1923
style: "decimal",

src/commands/erinnerung.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {
2-
CacheType,
3-
Client,
4-
CommandInteraction,
2+
type CacheType,
3+
type Client,
4+
type CommandInteraction,
55
SlashCommandBuilder,
66
SlashCommandStringOption,
7-
TextBasedChannel,
7+
type TextBasedChannel,
88
TimestampStyles,
99
time as formatTime,
1010
} from "discord.js";
@@ -14,7 +14,9 @@ import type { MessageCommand, ApplicationCommand } from "./command.js";
1414
import type { ProcessableMessage } from "../handler/cmdHandler.js";
1515
import type { BotContext } from "../context.js";
1616
import log from "../utils/logger.js";
17-
import Reminder, { ReminderAttributes } from "../storage/model/Reminder.js";
17+
import Reminder, {
18+
type ReminderAttributes,
19+
} from "../storage/model/Reminder.js";
1820
import { ensureChatInputCommand } from "../utils/interactionUtils.js";
1921

2022
const validateDate = (date: Date): true | string => {

src/commands/erleuchtung.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
// ================================ //
44

55
import {
6-
Client,
6+
type Client,
77
EmbedBuilder,
8-
GuildMember,
8+
type GuildMember,
99
SlashCommandBuilder,
1010
} from "discord.js";
11-
import { CommandInteraction, CacheType } from "discord.js";
11+
import type { CommandInteraction, CacheType } from "discord.js";
1212

1313
import type { ApplicationCommand, MessageCommand } from "./command.js";
1414
import type { ProcessableMessage } from "../handler/cmdHandler.js";

src/commands/extend.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { APIEmbedField, EmbedBuilder, Message } from "discord.js";
1+
import { type APIEmbedField, EmbedBuilder, type Message } from "discord.js";
22

33
import log from "../utils/logger.js";
44
import { getConfig } from "../utils/configHandler.js";

src/commands/faulenzerping.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import {
22
ActionRowBuilder,
33
ApplicationCommandType,
4-
CacheType,
5-
Client,
6-
CommandInteraction,
4+
type CacheType,
5+
type Client,
6+
type CommandInteraction,
77
ComponentType,
88
ContextMenuCommandBuilder,
9-
Message,
10-
Role,
9+
type Message,
10+
type Role,
1111
RoleSelectMenuBuilder,
12-
RoleSelectMenuInteraction,
13-
Snowflake,
12+
type RoleSelectMenuInteraction,
13+
type Snowflake,
1414
} from "discord.js";
1515

1616
import type { BotContext } from "../context.js";

src/commands/ficktabelle.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client } from "discord.js";
1+
import type { Client } from "discord.js";
22

33
import type { MessageCommand } from "./command.js";
44
import type { ProcessableMessage } from "../handler/cmdHandler.js";

src/commands/geburtstag.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import moment from "moment";
22
import {
3-
CommandInteraction,
4-
CacheType,
5-
Client,
3+
type CommandInteraction,
4+
type CacheType,
5+
type Client,
66
SlashCommandBuilder,
77
} from "discord.js";
88

src/commands/geringverdiener.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {
2-
CacheType,
3-
Client,
4-
CommandInteraction,
5-
GuildMember,
6-
Message,
2+
type CacheType,
3+
type Client,
4+
type CommandInteraction,
5+
type GuildMember,
6+
type Message,
77
EmbedBuilder,
88
SlashCommandBuilder,
99
SlashCommandStringOption,
10-
GuildEmojiManager,
10+
type GuildEmojiManager,
1111
} from "discord.js";
1212

1313
import type { BotContext } from "../context.js";

src/commands/google.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
2-
Client,
3-
CommandInteraction,
4-
GuildMember,
2+
type Client,
3+
type CommandInteraction,
4+
type GuildMember,
55
SlashCommandBuilder,
66
SlashCommandStringOption,
77
SlashCommandUserOption,

src/commands/info.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
2-
Client,
3-
CommandInteraction,
4-
Guild,
2+
type Client,
3+
type CommandInteraction,
4+
type Guild,
55
GuildPremiumTier,
6-
APIEmbed,
6+
type APIEmbed,
77
ButtonStyle,
88
SlashCommandBuilder,
99
ComponentType,

src/commands/invite.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client } from "discord.js";
1+
import type { Client } from "discord.js";
22

33
import type { ProcessableMessage } from "../handler/cmdHandler.js";
44
import type { MessageCommand } from "./command.js";

src/commands/mock.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
2-
CacheType,
3-
Client,
4-
CommandInteraction,
5-
GuildMember,
6-
Message,
2+
type CacheType,
3+
type Client,
4+
type CommandInteraction,
5+
type GuildMember,
6+
type Message,
77
EmbedBuilder,
88
SlashCommandBuilder,
99
SlashCommandStringOption,

src/commands/modcommands/ban.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
2-
CommandInteraction,
3-
GuildMember,
4-
PermissionsString,
5-
User,
2+
type CommandInteraction,
3+
type GuildMember,
4+
type PermissionsString,
5+
type User,
66
SlashCommandBuilder,
77
SlashCommandIntegerOption,
88
SlashCommandStringOption,

0 commit comments

Comments
 (0)