Merge branch 'dev' into 'main'
Dev See merge request illegitimate/illegitimate-bot!262
This commit is contained in:
10
package.json
10
package.json
@@ -18,8 +18,8 @@
|
|||||||
"dev:js": "nodemon --config nodemon-js.json dist/index.js",
|
"dev:js": "nodemon --config nodemon-js.json dist/index.js",
|
||||||
"dev:build": "cross-env NODE_PATH=src/ \"ts-node scripts/dev-deploy.ts\"",
|
"dev:build": "cross-env NODE_PATH=src/ \"ts-node scripts/dev-deploy.ts\"",
|
||||||
"dev:delete": "ts-node scripts/delete-commands.ts",
|
"dev:delete": "ts-node scripts/delete-commands.ts",
|
||||||
"lint": "eslint src",
|
"lint": "eslint",
|
||||||
"lint:fix": "eslint --fix src",
|
"lint:fix": "eslint --fix",
|
||||||
"prod:build": "cross-env NODE_PATH=src/ \"ts-node scripts/deploy-commands.ts\""
|
"prod:build": "cross-env NODE_PATH=src/ \"ts-node scripts/deploy-commands.ts\""
|
||||||
},
|
},
|
||||||
"author": "Taken",
|
"author": "Taken",
|
||||||
@@ -28,14 +28,14 @@
|
|||||||
"@discord-player/extractor": "^4.5.1",
|
"@discord-player/extractor": "^4.5.1",
|
||||||
"@evan/opus": "^1.0.3",
|
"@evan/opus": "^1.0.3",
|
||||||
"anilist": "^0.12.4",
|
"anilist": "^0.12.4",
|
||||||
"axios": "^1.7.3",
|
"axios": "^1.7.4",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"cron": "^3.1.7",
|
"cron": "^3.1.7",
|
||||||
"discord-player": "^6.7.1",
|
"discord-player": "^6.7.1",
|
||||||
"discord.js": "^14.15.3",
|
"discord.js": "^14.15.3",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"ioredis": "^5.4.1",
|
"ioredis": "^5.4.1",
|
||||||
"mongoose": "^8.5.2",
|
"mongoose": "^8.5.3",
|
||||||
"ms": "^2.1.3",
|
"ms": "^2.1.3",
|
||||||
"pg": "^8.12.0",
|
"pg": "^8.12.0",
|
||||||
"pg-hstore": "^2.3.4",
|
"pg-hstore": "^2.3.4",
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
"@eslint/eslintrc": "^3.1.0",
|
"@eslint/eslintrc": "^3.1.0",
|
||||||
"@eslint/js": "^9.9.0",
|
"@eslint/js": "^9.9.0",
|
||||||
"@types/ms": "^0.7.34",
|
"@types/ms": "^0.7.34",
|
||||||
"@types/node": "^20.14.15",
|
"@types/node": "^22.4.1",
|
||||||
"@types/pg": "^8",
|
"@types/pg": "^8",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.2.0",
|
"@typescript-eslint/eslint-plugin": "^8.2.0",
|
||||||
"@typescript-eslint/parser": "^8.2.0",
|
"@typescript-eslint/parser": "^8.2.0",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { REST, RESTPutAPIApplicationCommandsJSONBody, Routes } from "discord.js"
|
|||||||
import fs from "node:fs"
|
import fs from "node:fs"
|
||||||
import { ICommand } from "../src/interfaces"
|
import { ICommand } from "../src/interfaces"
|
||||||
import env from "../src/utils/Env"
|
import env from "../src/utils/Env"
|
||||||
|
import color from "../src/utils/functions/colors"
|
||||||
const rest = new REST({ version: "10" }).setToken(env.prod.token!)
|
const rest = new REST({ version: "10" }).setToken(env.prod.token!)
|
||||||
|
|
||||||
const commands: RESTPutAPIApplicationCommandsJSONBody = []
|
const commands: RESTPutAPIApplicationCommandsJSONBody = []
|
||||||
@@ -19,13 +20,16 @@ for (const file of contentMenuCommands) {
|
|||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
console.log(`Started refreshing ${commands.length} application (/) commands.`)
|
console.log(color(`Started refreshing ${commands.length} application (/) commands.`, "green"))
|
||||||
|
|
||||||
|
const commandsString = commands.map(command => " " + command.name)
|
||||||
|
console.log(color(commandsString.join("\n"), "lavender"))
|
||||||
|
|
||||||
await rest.put(
|
await rest.put(
|
||||||
Routes.applicationCommands(env.dev.clientid!),
|
Routes.applicationCommands(env.dev.clientid!),
|
||||||
{ body: commands },
|
{ body: commands },
|
||||||
).then(() => {
|
).then(() => {
|
||||||
console.log(`Successfully reloaded ${commands.length} application (/) commands.`)
|
console.log(color(`Successfully reloaded ${commands.length} application (/) commands.`, "green"))
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
46
yarn.lock
46
yarn.lock
@@ -464,12 +464,12 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/node@npm:^20.14.15":
|
"@types/node@npm:^22.4.1":
|
||||||
version: 20.14.15
|
version: 22.4.1
|
||||||
resolution: "@types/node@npm:20.14.15"
|
resolution: "@types/node@npm:22.4.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
undici-types: "npm:~5.26.4"
|
undici-types: "npm:~6.19.2"
|
||||||
checksum: 10c0/093713db52dc544f3931a3dec9d7d8ef661f323e57becd083a7918c778cef1eb6ec32d1017bf5ade06bb06dc5c7551f4f4d749a14e40868cce44d51e54acd8ed
|
checksum: 10c0/e42607438fcbd3a6aebd09084868fa0b22a4b0daf9eda79ed615df7ff8ae95e35ea56e090e1f3140ebae76b640abe42d4a6d5b60c0819eadf499adca737305b6
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -820,14 +820,14 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"axios@npm:^1.7.3":
|
"axios@npm:^1.7.4":
|
||||||
version: 1.7.3
|
version: 1.7.4
|
||||||
resolution: "axios@npm:1.7.3"
|
resolution: "axios@npm:1.7.4"
|
||||||
dependencies:
|
dependencies:
|
||||||
follow-redirects: "npm:^1.15.6"
|
follow-redirects: "npm:^1.15.6"
|
||||||
form-data: "npm:^4.0.0"
|
form-data: "npm:^4.0.0"
|
||||||
proxy-from-env: "npm:^1.1.0"
|
proxy-from-env: "npm:^1.1.0"
|
||||||
checksum: 10c0/a18cbe559203efa05fb1fec2d1898e23bf6329bd2575784ee32aa11b5bbe1d54b9f472c49a261294125519cf62aa4fe5ef6e647bb7482eafc15bffe15ab314ce
|
checksum: 10c0/5ea1a93140ca1d49db25ef8e1bd8cfc59da6f9220159a944168860ad15a2743ea21c5df2967795acb15cbe81362f5b157fdebbea39d53117ca27658bab9f7f17
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -2000,12 +2000,12 @@ __metadata:
|
|||||||
"@eslint/js": "npm:^9.9.0"
|
"@eslint/js": "npm:^9.9.0"
|
||||||
"@evan/opus": "npm:^1.0.3"
|
"@evan/opus": "npm:^1.0.3"
|
||||||
"@types/ms": "npm:^0.7.34"
|
"@types/ms": "npm:^0.7.34"
|
||||||
"@types/node": "npm:^20.14.15"
|
"@types/node": "npm:^22.4.1"
|
||||||
"@types/pg": "npm:^8"
|
"@types/pg": "npm:^8"
|
||||||
"@typescript-eslint/eslint-plugin": "npm:^8.2.0"
|
"@typescript-eslint/eslint-plugin": "npm:^8.2.0"
|
||||||
"@typescript-eslint/parser": "npm:^8.2.0"
|
"@typescript-eslint/parser": "npm:^8.2.0"
|
||||||
anilist: "npm:^0.12.4"
|
anilist: "npm:^0.12.4"
|
||||||
axios: "npm:^1.7.3"
|
axios: "npm:^1.7.4"
|
||||||
chalk: "npm:^4.1.2"
|
chalk: "npm:^4.1.2"
|
||||||
concurrently: "npm:^8.2.2"
|
concurrently: "npm:^8.2.2"
|
||||||
cron: "npm:^3.1.7"
|
cron: "npm:^3.1.7"
|
||||||
@@ -2016,7 +2016,7 @@ __metadata:
|
|||||||
eslint: "npm:^9.9.0"
|
eslint: "npm:^9.9.0"
|
||||||
globals: "npm:^15.9.0"
|
globals: "npm:^15.9.0"
|
||||||
ioredis: "npm:^5.4.1"
|
ioredis: "npm:^5.4.1"
|
||||||
mongoose: "npm:^8.5.2"
|
mongoose: "npm:^8.5.3"
|
||||||
ms: "npm:^2.1.3"
|
ms: "npm:^2.1.3"
|
||||||
pg: "npm:^8.12.0"
|
pg: "npm:^8.12.0"
|
||||||
pg-hstore: "npm:^2.3.4"
|
pg-hstore: "npm:^2.3.4"
|
||||||
@@ -2661,9 +2661,9 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"mongoose@npm:^8.5.2":
|
"mongoose@npm:^8.5.3":
|
||||||
version: 8.5.2
|
version: 8.5.3
|
||||||
resolution: "mongoose@npm:8.5.2"
|
resolution: "mongoose@npm:8.5.3"
|
||||||
dependencies:
|
dependencies:
|
||||||
bson: "npm:^6.7.0"
|
bson: "npm:^6.7.0"
|
||||||
kareem: "npm:2.6.3"
|
kareem: "npm:2.6.3"
|
||||||
@@ -2672,7 +2672,7 @@ __metadata:
|
|||||||
mquery: "npm:5.0.0"
|
mquery: "npm:5.0.0"
|
||||||
ms: "npm:2.1.3"
|
ms: "npm:2.1.3"
|
||||||
sift: "npm:17.1.3"
|
sift: "npm:17.1.3"
|
||||||
checksum: 10c0/9c0357751a2620b9bdc48bde437b54ad11c97e9e3cd0f10c0c144f02c4044638c80f21bcfa62a57789864586af9243cf0f3ec003da390a2e7f62ccc6d3ebbc26
|
checksum: 10c0/070a8359ee36c55b32f791fffd02fb6ad084b3f14408548eef14fcf1e7b25f078ae468b7f8e4e110d49fd18740e36b41e24ac09ee212b28cfc5ff99bad19816d
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -4016,13 +4016,6 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"undici-types@npm:~5.26.4":
|
|
||||||
version: 5.26.5
|
|
||||||
resolution: "undici-types@npm:5.26.5"
|
|
||||||
checksum: 10c0/bb673d7876c2d411b6eb6c560e0c571eef4a01c1c19925175d16e3a30c4c428181fb8d7ae802a261f283e4166a0ac435e2f505743aa9e45d893f9a3df017b501
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"undici-types@npm:~6.13.0":
|
"undici-types@npm:~6.13.0":
|
||||||
version: 6.13.0
|
version: 6.13.0
|
||||||
resolution: "undici-types@npm:6.13.0"
|
resolution: "undici-types@npm:6.13.0"
|
||||||
@@ -4030,6 +4023,13 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"undici-types@npm:~6.19.2":
|
||||||
|
version: 6.19.8
|
||||||
|
resolution: "undici-types@npm:6.19.8"
|
||||||
|
checksum: 10c0/078afa5990fba110f6824823ace86073b4638f1d5112ee26e790155f481f2a868cc3e0615505b6f4282bdf74a3d8caad715fd809e870c2bb0704e3ea6082f344
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"undici@npm:6.13.0":
|
"undici@npm:6.13.0":
|
||||||
version: 6.13.0
|
version: 6.13.0
|
||||||
resolution: "undici@npm:6.13.0"
|
resolution: "undici@npm:6.13.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user