From 25e963794dcee6d8c2c7d47f580228b54af26283 Mon Sep 17 00:00:00 2001 From: lunarash0 Date: Sat, 18 Apr 2026 15:45:23 +0200 Subject: [PATCH 1/3] docker: remove unneeded postinstall script --- .env.template | 5 +++++ package.json | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .env.template diff --git a/.env.template b/.env.template new file mode 100644 index 0000000..11b6889 --- /dev/null +++ b/.env.template @@ -0,0 +1,5 @@ +DISCORD_TOKEN=your bot's token +APPLICATION_ID=your bot's application id +DATABASE_URL="postgresql://databaseurl" +DEV=true/false +DEVIDS=list of userids that can run commands when in dev mode diff --git a/package.json b/package.json index 6abf8b6..59b663b 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "lint": "prettier --check . && eslint --ext .ts --format=pretty src", "deploy": "node --env-file-if-exists=.env dist/util/deploy.js", "format": "prettier --write . && eslint --ext .ts --fix --format=pretty src", - "postinstall": "prisma generate", "start": "node --env-file-if-exists=.env dist/index.js", "dev": "tsc --watch & node --watch --env-file=.env dist/index.js" }, From fe48e0275c9f3ff8ff73a447496c4f91036cb8a0 Mon Sep 17 00:00:00 2001 From: lunarash0 Date: Sat, 18 Apr 2026 16:06:42 +0200 Subject: [PATCH 2/3] upd: make cmd bold --- src/commands/promotion/bot.ts | 2 +- src/commands/utility/user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/promotion/bot.ts b/src/commands/promotion/bot.ts index cd040bf..ba85117 100644 --- a/src/commands/promotion/bot.ts +++ b/src/commands/promotion/bot.ts @@ -7,6 +7,6 @@ export default { description: `Get a link to add the bot to your server!`, }, async execute(interaction) { - await interaction.reply(`${emojis.rightArrow1} https://discord.com/oauth2/authorize?client_id=1494686224508522579\n❤️ Thanks!`); + await interaction.reply(`${emojis.rightArrow1} https://discord.com/oauth2/authorize?client_id=1494686224508522579\n❤️ **Thanks!**`); }, } satisfies Command; diff --git a/src/commands/utility/user.ts b/src/commands/utility/user.ts index 62cdd4a..c0a746b 100644 --- a/src/commands/utility/user.ts +++ b/src/commands/utility/user.ts @@ -7,6 +7,6 @@ export default { description: 'Provides information about the user.', }, async execute(interaction) { - await interaction.reply(`${emojis.rightArrow2} This command was run by ${interaction.user.username}.`); + await interaction.reply(`${emojis.rightArrow2} This command was run by **${interaction.user.username}**.`); }, } satisfies Command; From 6faeb84582abd212d49c459190eb89f2a228dcca Mon Sep 17 00:00:00 2001 From: lunarash0 Date: Sat, 18 Apr 2026 17:14:59 +0200 Subject: [PATCH 3/3] Contributing.md + warn prisma --- CONTRIBUTING.md | 23 +++++++++++++++++++++++ prisma/schema.prisma | 18 +++++++++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 CONTRIBUTING.md diff --git a/ CONTRIBUTING.md b/ CONTRIBUTING.md new file mode 100644 index 0000000..4dc901f --- /dev/null +++ b/ CONTRIBUTING.md @@ -0,0 +1,23 @@ +# Contributing to Quest Bot + +Contributing to Quest Bot requires basic knowledge of Typescript and Discord.JS. When contributing to Quest Bot please make sure you have + +## AI Rules + +Please refrain from using AI to create new features. Using AI to help you understand something is fine but you can't have it vibecode or make features for you. This is especially important for HackClub events. + +## Pull requests + +Please submit pull requests to the `dev` branch, unless this is a feature which requires a seperate branch. +Make sure to test the code you have made before creating a pull request. +Please write in the commit message what you have changed. + +> [!NOTE] +> When contributing to this project you agree that you have all rights to the content you have contributed and that these align with the projects license. + + +## Team + +You will be invited to the Quest team if you have contributed a lot towards on or more Quest projects. + +## Thanks! diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 4035b33..d511f47 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -14,6 +14,22 @@ model Server { settings Json @default("{}") createdAt DateTime @default(now()) updatedAt DateTime @updatedAt - + + warns Warn[] + @@map("server") } + +model Warn { + id String @id + serverId String + userId String + moderatorId String + reason String? + createdAt DateTime @default(now()) + + server Server @relation(fields: [serverId], references: [id], onDelete: Cascade) + + @@map("warns") +} +