Skip to content

Commit

Permalink
chore: deps minor
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Oct 4, 2024
1 parent af4871e commit 987f1b3
Show file tree
Hide file tree
Showing 10 changed files with 5,124 additions and 3,973 deletions.
32 changes: 16 additions & 16 deletions apps/bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@
"lint": "eslint src"
},
"devDependencies": {
"@types/uuid": "9.0.8",
"@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/parser": "7.1.0",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@waifu-bot/config": "workspace:*",
"typescript": "5.3.3"
"typescript": "^5.6.2"
},
"dependencies": {
"@cocoa-discord/music-module": "2.0.0",
"@discordjs/opus": "0.9.0",
"@discordjs/voice": "0.16.1",
"@cocoa-discord/music-module": "^2.0.0",
"@discordjs/opus": "^0.9.0",
"@discordjs/voice": "^0.16.1",
"@waifu-bot/auth": "workspace:*",
"@waifu-bot/constants": "workspace:*",
"@waifu-bot/database": "workspace:*",
"chalk": "5.3.0",
"cocoa-discord": "3.1.0",
"discord.js": "14.14.1",
"fastify": "4.26.1",
"ffmpeg-static": "5.2.0",
"libsodium-wrappers": "0.7.13",
"tslib": "2.6.2",
"uuid": "9.0.1",
"zod": "3.22.4"
"chalk": "^5.3.0",
"cocoa-discord": "^3.1.0",
"discord.js": "^14.16.3",
"fastify": "^4.28.1",
"ffmpeg-static": "^5.2.0",
"libsodium-wrappers": "^0.7.15",
"tslib": "^2.7.0",
"uuid": "^9.0.1",
"zod": "^3.23.8"
}
}
10 changes: 9 additions & 1 deletion apps/bot/src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,15 @@ scenter.on("error", async (name, err, ctx) => {
`Command "${name}" error at ${ctx.guild?.name} : ${err}`,
LogStatus.Error,
);
await ctx.channel?.send(`あら?, Error Occured: ${err}`.slice(0, 2000));

if (ctx.channel?.isSendable()) {
await ctx.channel?.send(`あら?, Error Occured: ${err}`.slice(0, 2000));
} else {
Cocoa.log(
`Unsendable Channel: ${ctx.channelId} at ${ctx.guild?.name}`,
LogStatus.Error,
);
}
});
scenter.on("interaction", (name, ctx) => {
Cocoa.log(
Expand Down
2 changes: 1 addition & 1 deletion apps/bot/src/commands/main.message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class Main extends MessageModuleClass {
const who =
strp.split(" ").filter((s) => s.length > 0)[0] ?? `<@${msg.author.id}>`;

await msg.channel.send(`${who} is gay!`);
if (msg.channel.isSendable()) await msg.channel.send(`${who} is gay!`);
}

@MessageCommand({
Expand Down
12 changes: 9 additions & 3 deletions apps/bot/src/commands/main.slash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ export class Main extends SlashModuleClass {
ctx: SlashCommand.Context,
@Param.String("Text to Helix-ify") text: Param.String.Type,
) {
if (!ctx.channel?.isSendable()) {
await ctx.reply('"bruh, this doesn\'t work here" — GitHub Copilot');
return;
}

const res = makeHelix(text);

if (res === HelixError.ILLEGAL_CHAR) {
Expand All @@ -152,7 +157,7 @@ export class Main extends SlashModuleClass {

await ctx.reply("Helix時間で~す!");
for (const helix of res) {
await ctx.channel?.send(helix);
await ctx.channel.send(helix);
}
}

Expand All @@ -162,12 +167,13 @@ export class Main extends SlashModuleClass {
@Param.String("Message for this bot to Speak")
message: Param.String.Type,
) {
if (ctx.channel) {
if (ctx.channel?.isSendable()) {
await ctx.reply({ content: "サプライズ成功!", ephemeral: true });
await ctx.channel.send(`${message}`);
} else {
await ctx.reply({
content: "サプライズ成功な~い!",
content:
"サプライズ成功な~い! メッセージが送るできないから! (´;ω;`)",
ephemeral: true,
});
}
Expand Down
62 changes: 31 additions & 31 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,41 @@
"format": "prettier --write ."
},
"devDependencies": {
"@sveltejs/adapter-node": "4.0.1",
"@sveltejs/kit": "2.5.2",
"@sveltejs/vite-plugin-svelte": "3.0.2",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/jsonwebtoken": "9.0.6",
"@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/parser": "7.1.0",
"@urami/core": "1.2.3",
"@urami/svelte": "1.1.1",
"@urami/types": "1.0.1",
"@sveltejs/adapter-node": "^4.0.1",
"@sveltejs/kit": "^2.6.1",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/jsonwebtoken": "^9.0.7",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@urami/core": "^1.2.3",
"@urami/svelte": "^1.1.1",
"@urami/types": "^1.0.1",
"@waifu-bot/constants": "workspace:*",
"autoprefixer": "10.4.18",
"discord-api-types": "0.37.71",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-svelte": "2.35.1",
"jsonwebtoken": "9.0.2",
"prettier": "3.2.5",
"prettier-plugin-svelte": "3.2.2",
"prettier-plugin-tailwindcss": "0.5.11",
"sass": "1.71.1",
"svelte": "4.2.12",
"svelte-bootstrap-icons": "3.1.1",
"svelte-check": "3.6.6",
"tailwind-merge": "2.2.1",
"tailwindcss": "3.4.1",
"tslib": "2.6.2",
"typescript": "5.3.3",
"vite": "5.1.4",
"vitest": "1.3.1",
"zod": "3.22.4"
"autoprefixer": "^10.4.20",
"discord-api-types": "^0.37.101",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.44.1",
"jsonwebtoken": "^9.0.2",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"prettier-plugin-tailwindcss": "^0.5.14",
"sass": "^1.79.4",
"svelte": "^4.2.19",
"svelte-bootstrap-icons": "^3.1.1",
"svelte-check": "^3.8.6",
"tailwind-merge": "^2.5.3",
"tailwindcss": "^3.4.13",
"tslib": "^2.7.0",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"vitest": "^1.6.0",
"zod": "^3.23.8"
},
"dependencies": {
"@waifu-bot/auth": "workspace:*",
"@waifu-bot/database": "workspace:*",
"sharp": "0.33.2"
"sharp": "^0.33.5"
}
}
43 changes: 24 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
],
"engines": {
"node": "^20.8",
"pnpm": "^8.9"
"pnpm": "^9"
},
"packageManager": "pnpm@8.15.4",
"packageManager": "pnpm@9.12.0",
"scripts": {
"clean": "rm -rf node_modules {apps,packages}/*/{.turbo,build,dist,node_modules,.svelte-kit}",
"build": "dotenv -v FORCE_COLOR=2 turbo run build",
Expand All @@ -25,24 +25,29 @@
"test": "FORCE_COLOR=2 turbo run test"
},
"devDependencies": {
"@leomotors/config": "0.11.0",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/eslint": "8.56.5",
"@types/node": "20.11.24",
"@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/parser": "7.1.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-sort-destructure-keys": "1.5.0",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "0.5.11",
"typescript": "5.3.3"
"@leomotors/config": "^0.11.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/eslint": "^8.56.12",
"@types/node": "^20.16.10",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-sort-destructure-keys": "^1.6.0",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.5.14",
"typescript": "^5.6.2"
},
"dependencies": {
"dotenv-cli": "7.3.0",
"turbo": "1.12.4"
"dotenv-cli": "^7.4.2",
"turbo": "^1.13.4"
},
"pnpm": {
"overrides": {
"discord-api-types": "^0.37.101"
}
}
}
4 changes: 2 additions & 2 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
},
"devDependencies": {
"@waifu-bot/config": "workspace:*",
"typescript": "5.3.3"
"typescript": "^5.6.2"
},
"dependencies": {
"zod": "3.22.4"
"zod": "^3.23.8"
}
}
2 changes: 1 addition & 1 deletion packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"devDependencies": {
"@waifu-bot/config": "workspace:*",
"typescript": "5.3.3"
"typescript": "^5.6.2"
}
}
8 changes: 4 additions & 4 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
},
"devDependencies": {
"@waifu-bot/config": "workspace:*",
"prisma": "5.10.2",
"tsx": "4.7.1",
"typescript": "5.3.3"
"prisma": "^5.20.0",
"tsx": "^4.19.1",
"typescript": "^5.6.2"
},
"dependencies": {
"@prisma/client": "5.10.2"
"@prisma/client": "^5.20.0"
}
}
Loading

0 comments on commit 987f1b3

Please sign in to comment.