Releases: NullStudioInc/NullStudio-dev
NullTracker v1.1 - Channel Log Reset Command
New Feature Added: Channel Log Reset Command!
What’s New?
/reset_channelCommand:
Server admins can now use this command to reset log assignments for any text channel.- If the channel is set for more than one type of log, you’ll get a menu to pick which one to reset.
- Only admins with “Manage Channels” permission can use this command.
Why is this useful?
- Quickly update or clean up your log settings.
- Prevents confusion by letting you choose exactly which log to reset in each channel.
- Helps keep your server organized!
How to Use?
Just type /reset_channel in any text channel where you want to reset log setups.
The bot will guide you through the rest!
Thank you for using NullStudio Bot!
If you have feedback or run into any issues, let us know.
NullTracker v1.0
Security Role Monitor Update v1.0
Overview
This update introduces significant improvements to the Security Role Monitor system, enhancing server security, performance, and reliability. The update focuses on providing administrators with better insights into role changes and potential security risks.
New Features
Advanced Security Role Monitor
- Real-time Role Analysis: Comprehensive analysis of permissions when roles are added or removed
- Three-tier Risk Assessment System:
- HIGH RISK: Roles with moderation capabilities and dangerous permissions
- MEDIUM RISK: Roles with sensitive permissions but limited scope
- LOW RISK: Roles with no concerning permissions
- Detailed Permission Breakdown: Clear explanations of what each suspicious permission can do
- Smart Batching System: Multiple role changes are collected and displayed in a single, organized message
- Audit Log Integration: Displays who made changes, timestamps, and reasons when available
Performance Improvements
- Caching System: Implemented efficient caching for configuration and permission data
- Memory Optimization: Periodic cache cleanup to prevent memory leaks during long sessions
- Asynchronous Operations: Optimized file I/O operations with async locks
- Reduced Redundancy: Minimized redundant permission checks and file operations
Security Enhancements
- Expanded Permission Monitoring: Now tracks 11 critical permissions including:
- administrator
- ban_members
- kick_members
- manage_roles
- manage_guild
- manage_channels
- manage_messages
- mention_everyone
- manage_webhooks
- manage_emojis_and_stickers
- moderate_members
- Role Creation Monitoring: Alerts when new roles with suspicious permissions are created
- Permission Change Tracking: Detects when existing roles gain or lose sensitive permissions
Code Quality Improvements
- Restructured Architecture: Better class organization and separation of concerns
- Enhanced Error Handling: Comprehensive error recovery and logging
- Improved Type Hinting: Better code documentation and type safety
- Constants and Configuration: Centralized configuration for easier maintenance
Bug Fixes
- Fixed issue that prevented logging when members left the server
- Resolved inconsistencies in role update notifications
- Improved stability during high-traffic periods
Technical Details
Role Update Batching System
The new batching system implements a 3-second delay before processing role updates. This allows:
- Collection of multiple role changes within the delay window
- Cancellation and rescheduling if new changes occur during the waiting period
- Processing all changes together after the delay expires
- Sending a single comprehensive log message with all role additions and removals
Caching Implementation
The cog now implements a sophisticated caching system that stores:
- Server configuration data
- Role permission information
- Moderation role lists
This significantly reduces disk I/O operations and improves response time.
Single Embed Improvement
- Consolidated suspicious permissions analysis into a single embed field
- Improved formatting for better readability in a single message
- Ensures all role information appears in one clean, organized embed
Compatibility
- Compatible with the latest version of Discord.py
- No new commands added, maintains the same interface as previous versions
- Backward compatible with existing configurations
Future Plans
Future updates will focus on:
- Advanced analytics and reporting
- Custom permission monitoring configurations
- Integration with other security systems
- Additional notification options
NullStudio Team