Releases: Valhalla-Development/ValkyrieCore
v1.2.15
Full Changelog: v1.2.14...v1.2.15
v1.2.14
Full Changelog: v1.2.13...v1.2.14
v1.2.13
Full Changelog: v1.2.11...v1.2.13
v1.2.11
Full Changelog: v1.2.9...v1.2.11
v1.2.9
Full Changelog: v1.2.0...v1.2.9
This update has support for zod env variable validation.
The main change in this update, however, is the fact that the Help command and the Ping command have been completely rewritten using the new Discord components.
v1.2.0
Full Changelog: v1.1.8...v1.2.0
🚀 Sharding Support Release
Overview
This release introduces sharding support to ValkyrieCore, enabling better scalability and performance for larger bots. The bot now uses discord-hybrid-sharding to distribute load across multiple processes while maintaining efficient resource usage.
🎯 Changes
Added
- Sharding Support: Integrated
discord-hybrid-shardingfor efficient bot scaling - Cluster Management: Added cluster manager to handle shard distribution
- Automatic Shard Calculation: Bot now automatically calculates required shards based on server count
- Worker Mode: Implemented worker-based sharding for better performance
Modified
- Client Configuration: Updated Discord.js client to support sharding
- Process Management: Improved process handling with cluster-based architecture
⚙️ Technical Details
- Each cluster handles 2 shards by default
- Uses worker threads for better performance
- Automatic shard calculation (1 shard per 2500 servers)
- Automatic cluster calculation based on shard count
📝 Notes
- No breaking changes to existing bot functionality
- Command handling remains the same from a user perspective
- Improved performance for bots with many servers
- Better resource utilization across CPU cores
🔧 Configuration
The sharding is configured automatically, but you can adjust shardsPerClusters in Cluster.ts if needed:
const manager = new ClusterManager(`${dir}/Main.ts`, {
totalShards: 'auto', // Automatically calculated
totalClusters: 'auto', // Automatically calculated
shardsPerClusters: 2, // Adjustable based on needs
mode: 'worker',
token: process.env.BOT_TOKEN,
});📚 Documentation
For more information about sharding in ValkyrieCore, check the updated documentation in the code comments.
v1.1.8
Full Changelog: v1.1.0...v1.1.8
v1.1.0
Full Changelog: v1.0.71...v1.1.0
v1.0.71
Full Changelog: v1.0.70...v1.0.71
v1.0.70
Full Changelog: v1.0.56...v1.0.70