/NawaPlate

NawaPlate is an open-source template for discord.js (used by Nawashu).

Primary LanguageJavaScriptMIT LicenseMIT

NawaPlate

NawaPlate is a Discord template designed to simplify the creation of Discord bots using JavaScript with Node.js. It was initially developed for the Nawashu bot by mat_sama.

Prerequisites

  • Installed MongoDB
  • Create two collections in MongoDB: commandlogs and langs
  • Fill out the .env file in /Configs

Example content for .env file

# ================= TOKENS =================
TOKEN_DISCORD="TOKEN_HERE"

# ================= URLS =================
URL_MONGO_INTERNAL="URL_HERE (ex: mongodb://USERNAME:PASSWORD@DOMAIN_NAME/?authMechanism=DEFAULT&authSource=admin&dbName=DATABASE_NAME)"
URL_MONGO_EXTERNAL="URL_HERE (ex: mongodb://USERNAME:PASSWORD@IP/?authMechanism=DEFAULT&authSource=admin&dbName=DATABASE_NAME)"

Caution

You should never share your .env file, as it contains information that could be misused.

Installation

git clone https://github.com/matsamaaa/NawaPlate
cd NawaPlate
npm install --save

Configuration

  1. Fill out the .env file as shown above.

Warning

2. Make sure MongoDB is running and the commandlogs and langs collections are created.

Used Packages

License

This project is licensed under the MIT License. See the LICENSE file for more details.


To run the bot:

npm start

© 2024 mat_sama. All rights reserved.