Skip to content

Virtual-Engine/nyx-discord-bot

Repository files navigation

Nyx Bot template

This project is the basis for creating a Discord bot using Node.js and the discord.js library. It includes a simple structure for adding commands and events, as well as examples to facilitate the development of additional functionality.

Prerequisites

Before you start, make sure you have the following installed:

Node.js (version 16.6.0 or higher for discord.js v14+) A Discord account with permissions to create bots A bot token that you can generate via the Discord Developer Portal

Install :

npm install

Configure .env file:

Rename the example-env.js file to .env and fill it with your bot token and the rest of the information:

TOKEN = “the of your bot”;
category = “categorie
guild = “server id”
color = #6600cc”
ID = “salon id”
salon_starting = “starting salon id”

Starting the bot:

You can start the bot using the following command:

node.

or

node main.js

Structure

├── commands/       Contains all bot commands
 └── example.js    Example of 'example' command
├── events/         Contains events (e.g. ready, messageCreate)
 ├── music/        Contains music events
  └── events.js   Creates music-related events
 └── ready.js      Event executed when bot connects
 └── interaction   Creates commands
 └── message.js    Creates message commands
├── main.js         Main bot entry point
├── config.json     Contains global configuration (prefix, etc.)
├── .env            Contains environment variables (token)
├── package.json    File containing dependencies and scripts
└── readme.md       This README file

Contributions

Contributions are welcome! If you have any suggestions or corrections, don't hesitate to create an issue or a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published