Nala is an open-source Discord bot designed to meet various needs with a flexible command structure and seamless integration with Discord's API.
- Slash Commands: Easily define and manage commands.
- Subcommands: Organize commands for better functionality.
- Utility Functions: Built-in utilities for logging and temporary replies.
- Customizable Configuration: Manage settings for initialization and command logging.
- Deno Compatibility: Run the bot with Deno for improved performance and security.
-
Clone the Repository
git clone https://github.com/Its3rr0rsWRLD/nala.git cd nala
-
Install Dependencies
npm install
-
Set Up Environment Variables
Create a
.env
file in the root directory and add your Discord bot token:TOKEN=your_discord_bot_token_here
-
Configure Settings
Edit
settings.json
to customize the bot's settings:{ "defaultTempReply": 5000, "invalidCommand": { "enabled": true, "timeout": 1, "message": "## Woops! How did this happen?\nThis command does not exist! 😅" }, "initMessage": { "enabled": true, "message": "Nala is ready for liftoff! 🚀" }, "logCommandsInit": true, "banCheckTime": 60, "alertBanToUser": true, "useOpenAIWhisperAPI": false, "bugReport": { "enabled": true, "webhook": "" } }
-
Clone the Repository
git clone https://github.com/Its3rr0rsWRLD/nala.git cd nala
-
Run the Bot with Deno
Use the following command to start the bot:
deno run --allow-net --allow-env --allow-read src/main.ts
-
Set Up Environment Variables
Ensure your
.env
file contains the bot token:TOKEN=your_discord_bot_token_here
-
Install Deno Dependencies (Optional)
If any additional Deno modules are required, install them using:
deno install [module]
Run the bot using:
npm start
deno run --allow-net --allow-env --allow-read src/main.ts
Place your command files in the commands
directory. Each command file should export an object with data
and execute
properties.
We welcome contributions!
-
Fork the Repository
Click the "Fork" button at the top right of the GitHub page.
-
Create a New Branch
git checkout -b feature/my-new-feature
-
Make Your Changes
Add new features, fix bugs, or improve documentation.
-
Commit Your Changes
git add . git commit -m "Add new feature"
-
Push to Your Fork
git push origin feature/my-new-feature
-
Create a Pull Request
Go to the original repository and click "New Pull Request". Describe your changes and submit.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any issues or questions, feel free to open an issue on GitHub or join our Discord server.