The goal of this project was to facilitate the moderation of Discord servers by providing a dedicated client for bot management and moderation tasks.
Project Benefits
This project is useful for server administrators who need an efficient and user-friendly way to manage bots and perform moderation tasks on Discord servers.
Project Description
This tool provides a client interface for managing Discord bots and performing moderation tasks. It integrates with the backend project api.discord-bot for handling API requests and bot commands.
Repository Link and Installation Example
Repository: Discord Bot Administrator
Installation
Clone the repository and install the dependencies:
git clone https://github.com/Fulldroper/discord.bot-administratorcd discord.bot-administratornpm install
Usage
Start the development server:
npm run dev
Access the client interface via the local server URL provided in the terminal output.
Project Workflow
-
User Authentication: Users log in to the client interface using their Discord credentials.
// Example of user authenticationasync function login() {const response = await fetch('/api/login', { method: 'POST', credentials: 'include' });const data = await response.json();if (data.success) {// User is logged in}} -
Bot Management: Users can add, remove, and configure bots for their Discord servers.
// Example of adding a botasync function addBot(botDetails) {const response = await fetch('/api/add-bot', {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify(botDetails)});const data = await response.json();if (data.success) {// Bot added successfully}} -
Moderation Tasks: Users can perform various moderation tasks such as muting, banning users, and managing roles.
// Example of muting a userasync function muteUser(userId) {const response = await fetch(`/api/mute/${userId}`, { method: 'POST' });const data = await response.json();if (data.success) {// User muted successfully}}
Skills Acquired
- Proficiency in Node.js and Nuxt.js
- Understanding of user authentication and session management
- Experience with RESTful API integration
- Development of client-server architecture for bot management