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/.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" }, 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") +} + 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;