🌺 Iris Assistant Template
🤖 Make Sure to Add My Bot 🌸Iris-Assistant and For More Info join 🔗Discord Server
📁 This repository contains the code for Iris Assistant, an all-in-one Discord bot designed to enhance your server experience. With a wide range of commands and useful features, it aims to provide a seamless and enjoyable Discord environment.
⏬ Installation
👤 To use Iris Assistant, please follow these steps:
📂 Clone this repository to your local machine or download the code as a ZIP file.
💻 Install the required dependencies by running the following command:
npm install
- 📜 Create a config.json file in the root directory of the project and fill in the necessary details. The format should be as follows:
{
"token": "Your Token Here",
"mongo": "Your Mongo Uri",
"clientId": "Your Bot Id"
}
🔑 Make sure to replace "Your Token Here", "Your Mongo Uri", and "Your Bot Id" with your actual token, MongoDB URI, and bot ID, respectively.
🏃♂️ How to run Bot
🚀 Start the bot by running the following command:
node index.js
or
node .
☑️ Command Format
✏️ To create a new command, follow the code format below:
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = {
data: new SlashCommandBuilder()
.setName('name of command')
.setDescription('description of command'),
async execute(interaction) {
try {
// Functionality of the command goes here
} catch (error) {
console.error('Error while executing command:', error);
}
},
};