Closed Trip-kun closed 7 months ago
The codebase now features an enhancement allowing commands to be threadable within text channels. A new SetAutoThread
command lets server admins toggle auto-threading for channels. The CommandHandler
creates threads when appropriate, and the ChannelData
interface has been updated to support this feature. Database schema updates have been made to persist these settings.
File Path | Change Summary |
---|---|
.../commands/Command.java .../commands/CommandHandler.java |
Added isThreadable and ensureThreadable methods to check and ensure commands are used in text channels. Updated handle method to create threads for long messages if auto-threading is enabled. Modified condition for skipping the command based on the author's ID. |
.../commands/essential/SetAutoThread.java |
Introduced a new class to handle auto-threading toggle commands. |
.../entities/ChannelData.java |
Added abstract methods for auto-threading settings. |
.../entities/mariadb/MariaChannel.java |
Implemented auto-threading settings with a new field. |
.../util/ORMLiteDatabaseUtil.java |
Database schema updated for ORM version 4 with new auto-threading columns. |
🐇 In the realm of code, where threads entwine,
A rabbit hopped, with changes so fine.
🧵 "Auto-thread," it cheered, with a small command tweak,
"Now your conversations can flow, unique and chic!" 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
…gleable
Summary by CodeRabbit
New Features
Enhancements
Database Updates