Merge branch 'dev' into 'main'
Dev See merge request illegitimate/illegitimate-bot!241
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = {
|
|||||||
plugins: ["@typescript-eslint"],
|
plugins: ["@typescript-eslint"],
|
||||||
rules: {
|
rules: {
|
||||||
indent: ["error", 4, { SwitchCase: 1 }],
|
indent: ["error", 4, { SwitchCase: 1 }],
|
||||||
"linebreak-style": ["error", "windows"],
|
"linebreak-style": ["error", "unix"],
|
||||||
quotes: ["warn", "double"],
|
quotes: ["warn", "double"],
|
||||||
semi: ["error", "never"],
|
semi: ["error", "never"],
|
||||||
"no-unused-vars": "off",
|
"no-unused-vars": "off",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"ignore": [
|
"ignore": [
|
||||||
".git",
|
".git",
|
||||||
"node_modules/**/node_modules",
|
"node_modules/**/node_modules",
|
||||||
"dist/config",
|
|
||||||
"src"
|
"src"
|
||||||
],
|
],
|
||||||
"verbose": true,
|
"verbose": true,
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
"restartable": "rs",
|
"restartable": "rs",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
".git",
|
".git",
|
||||||
"node_modules/**/node_modules",
|
"node_modules/**/node_modules"
|
||||||
"dist/config"
|
|
||||||
],
|
],
|
||||||
"verbose": true,
|
"verbose": true,
|
||||||
"env": {
|
"env": {
|
||||||
|
|||||||
17
package.json
17
package.json
@@ -16,11 +16,11 @@
|
|||||||
"dev": "conc --names \"TSC,BOT\" --prefix-colors \"blue, magenta\" \"tsc -w\" \"yarn dev:js\"",
|
"dev": "conc --names \"TSC,BOT\" --prefix-colors \"blue, magenta\" \"tsc -w\" \"yarn dev:js\"",
|
||||||
"dev:ts": "nodemon --config nodemon.json src/index.ts",
|
"dev:ts": "nodemon --config nodemon.json src/index.ts",
|
||||||
"dev:js": "nodemon --config nodemon-js.json dist/index.js",
|
"dev:js": "nodemon --config nodemon-js.json dist/index.js",
|
||||||
"dev:build": "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 src",
|
||||||
"lint:fix": "eslint --fix src",
|
"lint:fix": "eslint --fix src",
|
||||||
"prod:build": "ts-node scripts/deploy-commands.ts"
|
"prod:build": "cross-env NODE_PATH=src/ \"ts-node scripts/deploy-commands.ts\""
|
||||||
},
|
},
|
||||||
"author": "Taken",
|
"author": "Taken",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
@@ -35,20 +35,21 @@
|
|||||||
"discord.js": "^14.14.1",
|
"discord.js": "^14.14.1",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"ioredis": "^5.3.2",
|
"ioredis": "^5.3.2",
|
||||||
"mongoose": "^8.1.3",
|
"mongoose": "^8.2.1",
|
||||||
"ms": "^2.1.3",
|
"ms": "^2.1.3",
|
||||||
"pretty-ms": "^9.0.0",
|
"pretty-ms": "^9.0.0",
|
||||||
"youtube-ext": "^1.1.16"
|
"youtube-ext": "^1.1.16"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/ms": "^0.7.34",
|
"@types/ms": "^0.7.34",
|
||||||
"@types/node": "^20.11.19",
|
"@types/node": "^20.11.28",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
||||||
"@typescript-eslint/parser": "^7.0.2",
|
"@typescript-eslint/parser": "^7.2.0",
|
||||||
"concurrently": "^8.2.2",
|
"concurrently": "^8.2.2",
|
||||||
"eslint": "^8.56.0",
|
"cross-env": "^7.0.3",
|
||||||
|
"eslint": "^8.57.0",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.1.1"
|
"packageManager": "yarn@4.1.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||||
import { embedColor, devMessage, instructionsgif } from "config/options"
|
import { embedColor, devMessage, instructionsgif } from "config/options"
|
||||||
import { ICommand } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
import { removeIndents } from "utils/functions/funcs"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "instructions",
|
name: "instructions",
|
||||||
@@ -18,12 +19,17 @@ export = {
|
|||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: "Verification",
|
title: "Verification",
|
||||||
description: "1. Log onto hypixel.\n" +
|
description: removeIndents(`
|
||||||
"2. Right click with the head in your hotbar.\n" +
|
- Log onto hypixel.
|
||||||
"3. Click on the social media icon.\n" +
|
- Right click with the head in your hotbar.
|
||||||
"4. Click on the discord icon.\n" +
|
- Click on the social media icon.
|
||||||
"5. Type your username in the chat and press enter.\n" +
|
- Click on the discord icon.
|
||||||
"6. Run the `/verify` command in this channel.\n",
|
- Type your username in the chat and press enter.
|
||||||
|
- Run the \`/verify\` command in this channel.
|
||||||
|
`),
|
||||||
|
thumbnail: {
|
||||||
|
url: interaction.guild?.iconURL() || ""
|
||||||
|
},
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
footer: {
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
@@ -31,7 +37,6 @@ export = {
|
|||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
url: instructionsgif,
|
url: instructionsgif,
|
||||||
proxy_url: instructionsgif
|
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ export = {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const results = tracks.map(track => ({
|
const results = tracks.map(track => ({
|
||||||
name: `${track.title} [${track.author}]`,
|
name: `${track.title.slice(0, 20)} [${track.author}]`,
|
||||||
value: track.url
|
value: track.url
|
||||||
}))
|
}))
|
||||||
|
|
||||||
await interaction.respond(results.slice(0, 10)).catch()
|
await interaction.respond(results.slice(0, 6)).catch()
|
||||||
}
|
}
|
||||||
} as IAutocomplete
|
} as IAutocomplete
|
||||||
@@ -27,7 +27,7 @@ export = {
|
|||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
const status = i++ % statuses.length
|
const status = i++ % statuses.length
|
||||||
user.setActivity({ name: getActivity(statuses[status].name), type: statuses[status].type })
|
user.setActivity({ name: getActivity(statuses[status].name), type: statuses[status].type })
|
||||||
}, 1000 * 60 * 10)
|
}, 1000 * 60)
|
||||||
|
|
||||||
user.setStatus("dnd")
|
user.setStatus("dnd")
|
||||||
}
|
}
|
||||||
|
|||||||
15
yarn.lock
15
yarn.lock
@@ -840,7 +840,19 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"cross-spawn@npm:^7.0.2":
|
"cross-env@npm:^7.0.3":
|
||||||
|
version: 7.0.3
|
||||||
|
resolution: "cross-env@npm:7.0.3"
|
||||||
|
dependencies:
|
||||||
|
cross-spawn: "npm:^7.0.1"
|
||||||
|
bin:
|
||||||
|
cross-env: src/bin/cross-env.js
|
||||||
|
cross-env-shell: src/bin/cross-env-shell.js
|
||||||
|
checksum: 10c0/f3765c25746c69fcca369655c442c6c886e54ccf3ab8c16847d5ad0e91e2f337d36eedc6599c1227904bf2a228d721e690324446876115bc8e7b32a866735ecf
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"cross-spawn@npm:^7.0.1, cross-spawn@npm:^7.0.2":
|
||||||
version: 7.0.3
|
version: 7.0.3
|
||||||
resolution: "cross-spawn@npm:7.0.3"
|
resolution: "cross-spawn@npm:7.0.3"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -1471,6 +1483,7 @@ __metadata:
|
|||||||
chalk: "npm:^4.1.2"
|
chalk: "npm:^4.1.2"
|
||||||
concurrently: "npm:^8.2.2"
|
concurrently: "npm:^8.2.2"
|
||||||
cron: "npm:^3.1.6"
|
cron: "npm:^3.1.6"
|
||||||
|
cross-env: "npm:^7.0.3"
|
||||||
discord-player: "npm:^6.6.7"
|
discord-player: "npm:^6.6.7"
|
||||||
discord.js: "npm:^14.14.1"
|
discord.js: "npm:^14.14.1"
|
||||||
dotenv: "npm:^16.4.5"
|
dotenv: "npm:^16.4.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user