Skip to main content

Generating a Bot

This guide will walk you through the process of generating a bot using our Yeoman generator.

Prerequisites

First install Yeoman and the generator:

npm install -g yo generator-hades-bot

Generating a Bot

To generate a bot, run the following command:

yo hades-bot

You will be prompted for the following information:

  • Bot Name: The name of your bot. This will be used to name the bot's directory and the bot's class.
  • Discord Bot Token: A Discord bot token. You can create a bot and get a token here.
  • Bot Owner: The Discord ID of the bot owner. You can get your Discord ID by enabling developer mode in Discord and right clicking your name in a chat.

Running the Bot

To run the bot, install the dependencies and run the start script:

cd <bot-name>
npm install
npm run start