{"repo":"CedarBlocks/Simple-Discord-Bot-Website","free":true,"listed":false,"github":"https://github.com/CedarBlocks/Simple-Discord-Bot-Website","clone":"git clone https://github.com/CedarBlocks/Simple-Discord-Bot-Website.git","description":"This is an open source simple discord bot website that is still under development","language":"EJS","stars":37,"topics":["html","website-template","discord","css","javascript","discord-bot-website","bot","express"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Simple Discord Bot Website A simple Express.js website and API for Discord bots. This project has been updated with modern security practices and best practices. Features - Modern Express.js server with security middleware - Rate limiting to prevent abuse - Security headers via Helmet - Environment variable support - RESTful API endpoints - Error handling and logging Requirements - Node.js = 18.0.0 - npm or yarn Setup 1. Clone the repository: 2. Install dependencies: 3. Configure environment variables: - Copy .env.example to .env - Fill in your configuration values: Alternatively, you can use config.json (not recommended for production). 4. Start the server: API Endpoints - GET /api - API information and available endpoints - GET /api/logo - Get bot logo/avatar in various sizes - GET /api/status - Get bot status, server count, ping, and online/offline status - GET /api/stats - Alias for /api/status - POST /api/update-stats - Update bot stats (server count, ping) API Usage Guide Overview The API allows your Discord bot to report its statistics (server count, ping, status) to the website, which will then be displayed on the homepage. The website automatically fetches stats from your bot server, but you can also manually update them via POST requests. Getting Bot Status Endpoint: GET /api/status or GET /api/stats Response: Example (cURL): Example (JavaScript/Node.js): Example (Python): Updating Bot Stats Endpoint: POST /api/update-stats Request Body: Both fields are optional - y","default_branch":null,"files":null,"tree":[],"storefront":"/r/CedarBlocks","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CedarBlocks/Simple-Discord-Bot-Website/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}