Skip to content
netbloodPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

SecMX Discord Bot with Website

Welcome to the SecMX project repository! This project is a Discord bot that integrates with a website. It includes the bot’s logic, web interface, and configuration files to run both components.

Project Structure

The repository contains the following key components:

  • commands: Stores the command files that control the behavior of the Discord bot.
  • configs: Includes configuration files for both the bot and website setup.
  • node_modules: The directory for all installed dependencies.
  • public: Contains publicly accessible files, such as images, stylesheets, and JavaScript files for the website.
  • views: Stores the view templates used to render the website.
  • .env: Environment variables used for configuration (for bot tokens, API keys, etc.).
  • .gitattributes: Git attributes for managing the repository.
  • server.js: The main server file where both the bot and website are started and managed.
  • start.bat: A batch script to start the application.
  • installer.bat: A batch script for installing dependencies.
  • devstart.bat: A batch script for starting the development environment.
  • open vscode.bat: A batch script to open the project in Visual Studio Code.
  • package.json: Defines the project metadata and installed dependencies.
  • package-lock.json: Ensures consistent dependency installation.

Installation

To get started with this project, you need to install the required dependencies.

  1. Clone this repository:
    git clone https://github.com/bilalchentouf7/SecMX.git
  2. Navigate to the project directory:
    cd SecMX
  3. Install the dependencies:
    npm install

Running the Project

After installation, you can run the project using the following commands:

  • Development Mode:
    To start the development environment, run:

    npm run dev

    Alternatively, you can use the provided devstart.bat script.

  • Production Mode:
    To start the bot and website in production mode, run:

    npm start

    Alternatively, you can use the provided start.bat script.

Configuration

Make sure to set up your environment variables in the .env file. Here's an example:

DISCORD_TOKEN=your_discord_bot_token
CLIENT_ID=your_discord_client_id
CLIENT_SECRET=your_discord_client_secret
PORT=your_preferred_port

Batch Scripts

  • devstart.bat: Starts the development environment with necessary configurations.
  • installer.bat: Installs the necessary dependencies for the project.
  • start.bat: Starts the application in production mode.
  • open vscode.bat: Opens the project directly in Visual Studio Code.

Images and Logos

The repository includes the following images:

  • Vlogo.png: Project logo. (normal logo)
  • download.png: Download-related image.
  • logo.png: Another logo image. ( circle logo )
  • secmcbanner.png: Banner for SecMX. ( bot banner )

Contribution

We welcome contributions to the project! To contribute, follow these steps:

  1. Fork this repository.
  2. Create a new branch.
  3. Make your changes.
  4. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages