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.
- Installed MongoDB
- Create two collections in MongoDB:
commandlogs
andlangs
- Fill out the
.env
file in/Configs
# ================= 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.
git clone https://github.com/matsamaaa/NawaPlate
cd NawaPlate
npm install --save
- Fill out the
.env
file as shown above.
Warning
2. Make sure MongoDB is running and the commandlogs
and langs
collections are created.
- chalk - For coloring console output
- dateformat - For date formatting
- discord-hybrid-sharding - For Discord hybrid sharding
- discord.js - Main library for interacting with the Discord API
- dotenv - For loading environment variables from a
.env
file - mongoose - ODM for MongoDB
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.