Skip to content

mazkdevf/discord-custom-bot-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Custom Bots using Express API

Overview

This repository utilizes Express with various API endpoints to create Discord Bots capable of serving different purposes.

Features

  1. Supports the management of multiple bots, from a single user to multiple users. (Tested in a simulated scenario, not in a real-world environment)
  2. Implemented a security feature that disables the bot token after three consecutive login failure attempts. The token will remain disabled until corrected by the user through the API endpoint. (Future updates will allow automatic reactivation of the token upon successful user submission.)
  3. Provides support for various JavaScript commands stored in the "./commands" folder.
  4. Implemented an automatic restart mechanism for the bot in case of failures or errors.

Future enhancements will include webhook integration to notify designated management Discord or Telegram channels, facilitating prompt issue resolution.

API Endpoints

POST "/api/v1/bots/create"

Endpoint to create new Discord bots.

GET "/api/v1/bots/fetch"

Endpoint to fetch information about existing Discord bots.

DELETE "/api/v1/bots/delete"

Endpoint to delete Discord bots.

TODO

The following API endpoints will be implemented for Discord integration:

POST "/api/v1/discord"

Endpoint to interact with Discord API using various HTTP methods.

For example:

All endpoints return responses in JSON format, containing essential information. (EXCEPT Discord API)

{
    "success": true or false,
    "message": "something here",
    // something additional....
}

Images

image

image

Sponsor this project