update all packages
This commit is contained in:
parent
20b3cefd38
commit
ccc663f1da
5 changed files with 4065 additions and 3750 deletions
|
@ -1,8 +1,7 @@
|
|||
version: "3.7"
|
||||
services:
|
||||
xyter:
|
||||
container_name: xyter
|
||||
image: registry.zyner.org/zyner/xyter/bot
|
||||
image: zyner/xyter
|
||||
#build:
|
||||
# context: .
|
||||
restart: unless-stopped
|
||||
|
|
7760
package-lock.json
generated
7760
package-lock.json
generated
File diff suppressed because it is too large
Load diff
38
package.json
38
package.json
|
@ -34,36 +34,36 @@
|
|||
"email": "vermium@zyner.org"
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "^4.7.1",
|
||||
"@prisma/client": "^6.0.1",
|
||||
"@semantic-release/gitlab": "^12.0.3",
|
||||
"axios": "^1.4.0",
|
||||
"chance": "^1.1.9",
|
||||
"date-fns": "^2.29.3",
|
||||
"date-fns": "^4.1.0",
|
||||
"discord.js": "^14.7.1",
|
||||
"dotenv": "^16.0.3",
|
||||
"node-schedule": "^2.1.0",
|
||||
"uuid": "^9.0.0",
|
||||
"uuid": "^11.0.3",
|
||||
"winston": "^3.8.2",
|
||||
"winston-daily-rotate-file": "^4.7.1"
|
||||
"winston-daily-rotate-file": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"@semantic-release/release-notes-generator": "^11.0.0",
|
||||
"@types/chance": "1.1.3",
|
||||
"@types/node-schedule": "2.1.0",
|
||||
"@types/uuid": "^9.0.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.46.1",
|
||||
"@typescript-eslint/parser": "^5.46.1",
|
||||
"eslint": "^8.29.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"@semantic-release/release-notes-generator": "^12.1.0",
|
||||
"@types/chance": "1.1.6",
|
||||
"@types/node-schedule": "2.1.7",
|
||||
"@types/uuid": "^10.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.18.0",
|
||||
"@typescript-eslint/parser": "^8.18.0",
|
||||
"eslint": "^9.16.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-import": "^2.27.5",
|
||||
"eslint-plugin-no-loops": "0.3.0",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"lint-staged": "^13.2.2",
|
||||
"nodemon": "^2.0.22",
|
||||
"prettier": "^2.8.8",
|
||||
"prisma": "^4.9.0",
|
||||
"semantic-release": "^21.0.0",
|
||||
"eslint-plugin-no-loops": "0.4.0",
|
||||
"eslint-plugin-prettier": "5.2.1",
|
||||
"lint-staged": "^15.2.11",
|
||||
"nodemon": "^3.1.7",
|
||||
"prettier": "^3.4.2",
|
||||
"prisma": "^6.0.1",
|
||||
"semantic-release": "^22.0.12",
|
||||
"typescript": "^5.0.4"
|
||||
},
|
||||
"lint-staged": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {
|
||||
CommandInteraction,
|
||||
ChatInputCommandInteraction,
|
||||
EmbedBuilder,
|
||||
SlashCommandSubcommandBuilder,
|
||||
SlashCommandSubcommandBuilder
|
||||
} from "discord.js";
|
||||
import deferReply from "../../../../utils/deferReply";
|
||||
import sendResponse from "../../../../utils/sendResponse";
|
||||
|
@ -17,7 +17,7 @@ export const builder = (command: SlashCommandSubcommandBuilder) => {
|
|||
);
|
||||
};
|
||||
|
||||
export const execute = async (interaction: CommandInteraction) => {
|
||||
export const execute = async (interaction: ChatInputCommandInteraction) => {
|
||||
const { options, user } = interaction;
|
||||
|
||||
await deferReply(interaction, false);
|
||||
|
|
|
@ -31,10 +31,12 @@ export default async (message: Message) => {
|
|||
};
|
||||
|
||||
if (message.author.bot) return;
|
||||
if (message.channel.type != ChannelType.GuildText) return;
|
||||
|
||||
const checkTime = 5 * 1000; // Milliseconds
|
||||
const maxMessageAmount = 3; // Anti Spam Rule, remove 1 credit per message above this value during "checkTime" variable
|
||||
const amount = 1; //Amount to give if valid
|
||||
|
||||
const penaltyAmount = 2; //Amount to take if invalid
|
||||
|
||||
await message.channel
|
||||
|
|
Loading…
Add table
Reference in a new issue