A basic bot that sends a welcome message, with potential for more features in the future.
It is working on discord server Order of Devs Community.
- "start" - runs the application
How to run it:
npm start- "dev" - runs the application in watch mode
How to run it:
npm dev- "docker build -t discord-bot ." - build the Docket image
How to run it:
docker build -t discord-bot .- "format" - runs the Biome.js to format all (js, jsx, ts, tsx, json) files in src directory
How to run it:
npm run format- "format:check" - runs the Biome.js to check the formatting all (js, jsx, ts, tsx, json) files in src directory
How to run it:
npm run format:check- "lint:check" - runs the Biome.js to check only linting issues in files (js, jsx, ts, tsx, json)
How to run it:
npm run lint:check- "lint:fix" - runs the Biome.js to check for linting issues and automatically fix them in files (js, jsx, ts, tsx, json)
How to run it:
npm run lint:fix- Node.js
- Docker - optional if you want run it inside container
- Clone repository:
Command for SSH
git clone git@github.com:UgzSourceCode/discord-user-bot.gitCommand for HTTPS
git clone https://github.com/UgzSourceCode/discord-user-bot.git- Build the Docker image:
Navigate to the cloned repository folder and run:
docker build -t discord-bot .- Configure the bot:
There is an example configuration in the .env-sample file. Please create a .env file and populate it with your own values.
- Run the bot:
docker run --env-file .env discord-bot- Clone repository:
Command for SSH
git clone git@github.com:UgzSourceCode/discord-user-bot.gitCommand for HTTPS
git clone https://github.com/UgzSourceCode/discord-user-bot.git- Install dependency:
Navigate to the cloned repository folder and run:
npm install --production- Configure the bot:
There is an example configuration in the .env-sample file. Please create a .env file and populate it with your own values.
- Run the bot:
npm startdiscord.jsdotenvts-nodemodcleanpinopino-prettypino-tee
@types/nodets-node-devtypescript@biomejs/biome
