My first Remaking of "StarAPI" a simple API / Discord Bot with some quirks and gismos then and there.
-
🖥️ Server Info: Comprehensive system monitoring including:
- RAM usage and availability
- CPU information and usage
- Kernel and OS information
- Public and local IP addresses
- System uptime
-
⚡ API Health: Real-time health monitoring with:
- Response time measurement
- Discord latency checking
- Memory usage tracking
- Disk health status
- Overall system health scoring
-
🎉 Fun Stuff:
- Random tech facts
- System-themed jokes
- Bot uptime tracking
- Command usage statistics
Setup Rust in your environment (this one is for linux):
-
Clone repository:
git clone https://github.com/O4bit/2tarAPI.git cd 2tarAPI -
Install Rust (if not already installed):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Create your Discord application:
- Go to Discord Developer Portal
- Create a new application
- Go to the "Bot" section
- Create a bot and copy the token
-
Set up environment variables:
cp .env.example .env # Edit .env and add your Discord bot token -
Build and run:
cargo run
/server_info- Get comprehensive server information/health- Check API health and performance metrics/random_fact- Get a random tech fact/system_joke- Get a system-themed joke/uptime- Show bot uptime/stats- Show command usage statistics
All slash commands are also available with the ! prefix:
!server_info!health!random_fact!system_joke!uptime!stats
Any contributions are appreciated
This project is licensed under the GNU General public V3 license
Built by O4bit with ❤️ and 🦀 Rust