Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes various enhancements and new features for the Unthread Discord Bot project, focusing on deployment automation, support ticket handling, caching, and webhook event handling. The most important changes are grouped into configuration updates, feature additions, and tweaks.
Configuration Updates:
package.json
: Added deploy command script for deployment automation.Feature Additions:
src/commands/support/support.js
: Enhanced support ticket modal by adding a title input and updated logging for ticket creation.src/events/interacationCreate.js
: Integrated Redis for caching customer and ticket data and updated support ticket handling.Tweaks:
src/index.js
: Updated start script inpackage.json
to include deploy commands execution.src/events/messageCreate.js
: Enhanced webhook event handling to prevent duplicate messages in Discord threads.src/events/messageCreate.js
: Updated ticket message format to use "Ticket #" instead of "Ticket ID".src/utils/cache.js
: Refactored caching mechanism to use in-memory storage and implemented cache utility functions.src/events/webhook.js
: Enhanced webhook event handling to notify Discord on ticket status changes.package.json
: Bumped version to 0.1.8 and cleaned up dependencies.