A basic Discord bot with discord.js v13.
- Node.js 16.9.0 or newer
- Yarn
- Clone the repository:
git clone https://github.com/marcstraube/discordjs-bot.git
- Install dependencies:
yarn install
- Setup a new bot application: https://discordjs.guide/preparations/setting-up-a-bot-application.html
- Add your bot to your server: https://discordjs.guide/preparations/adding-your-bot-to-servers.html
- Copy
.env.default
to.env
and set yourGUILD_ID
andTOKEN
. - If you want to run your bot in production environment, set
ENV=production
.
yarn start
This code is licensed under the CC0 1.0 Universell (CC0 1.0) license.