Skip to content

A simple starter template for creating a Discord bot using JavaScript.

Notifications You must be signed in to change notification settings

RogueArt/discordjs-bot-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A simple starter template for creating a Discord bot using Discord.js v13.

Currently this does not support slash commands, but will be updated with support later on.

Getting Started

Prerequisites

Install the latest version of Node from here. This bot requires Node v16 or above to function.

Create a Discord bot here and have the bot token ready.

You can find the bot token under the "Bot" page for your selected bot. Click "Copy" to copy the bot token to clipboard.

See here for example: Bot token page for a Discord bot

Installation

  1. Clone this repository:
git clone https://github.com/RogueArt/discord-bot-template.git
  1. Install node modules:
cd discord-bot-template
npm install
  1. Configure the bot:
    1. Make a copy of .env.example and call it .env
    2. Replace the value for BOT_TOKEN with your Discord bot's token
    3. Change the prefix to any prefix you want to use for your commands

Running

To run the bot, simply do npm run start.

To run it in development mode, use npm run dev to live reload the bot as the source code changes.

Contributing

Feel free to fork this repo and change the code however you like! Make a pull request and I'll review it as soon as I can!

About

A simple starter template for creating a Discord bot using JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published