Warden Discord Bot
Extra information here is To-Do
Contribution Guide
- Make sure you have pnpm installed.
- Go to the Discord Developer Portal, make an application if you haven't and create a bot there if you haven't either.
- Now you can see the Bot Token, save this one because you'll have to reset it if you lose it.
- Enable the
Presence Intent
, theServer Members Intent
and theMessage Content Intent
on the same page. - Now navigate to the OAuth2 page and to the URL Generator tab, there you select the option
bot
andapplication.commands
. After that you can select the permissions, for ease just selectAdministrator
. Then you can copy the link and invite the bot to your server to get started with actually starting the bot. - Clone this repository.
- Open this in a code editor of your choice.
- Open a terminal in this folder (VSCode for example has one built-in).
- Run the command
pnpm i
. - Create file called
.env
in this folder. - Copy the contents of
.env.example
to the newly created file and edit them accordingly:
token
is the token of your Discord Developer App Bot.environment
is the environment the bot should run in, the options aredev
,prod
anddebug
.dev
is recommended for contributing.guildId
is the ID of your the discord server that the bot should act in, you can see how to do that here.DATABASE_URL
should speak for itself, that is the data for your database which the bot runs with, it's recommended to setup some kind of MySQL Server (if you have no password, you can remove the:PASSWORD
part).
- Now run the command
npx prisma migrate dev --name init
. - Now you can safely run
pnpm start:dev
to run the bot.