Kuljeet-123 / discordjs-bot-starter-using-nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructions for the Code


To use this code, follow the instructions:

  • Install all dependencies:

    npm install or npm i

  • Create a .env file for environment variables in the root directory of this repository, not inside the src folder!

  • Create three environment variables:

    1. DISCORDJS_BOT_TOKEN - Your Bot Token
    2. WEBHOOK_ID - For webhooks, not required unless you want to use the webhook command
    3. WEBHOOK_TOKEN - The token for your webhook client, refer to 1:12:00 in the video on how to create a Webhook.
  • Run npm run start or npm run dev in the project directory.

About


Languages

Language:JavaScript 96.9%Language:Shell 3.1%