Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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!
5 changes: 5 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
18 changes: 17 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

2 changes: 1 addition & 1 deletion src/commands/promotion/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion src/commands/utility/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;