Skip to content
Node.js Discord Bot Template
Profile icon

Hello People

This is a Discord bot starter template I've been working on. Here are some features which it can provide for you:

  • Command Handling
    • Your commands will be in the commands folder.
    • Command Cool downs
    • owner only commands (will be displayed on help command)
    • guild only commands (will be displayed on help command)
    • usage (will be display on help command)
    • description (will be displayed on help command)
  • .env config file
    • prefix
    • token
You are viewing a single comment. View All
Profile icon

Error: There must be a token inside the .env file! Make sure that you have created a .env file and defined the token variable with the correct bot token!
at /home/runner/Nodejs-Discord-Bot-Template/index.js:20:19
at Script.runInContext (vm.js:130:18)
at Object. (/run_dir/interp.js:209:20)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47Hint: hit control+ Help I don't now what am supposed to be doing

Profile icon

You can just make a file called as .env and paste this inside
token=bot token
prefix=bot prefix