Additions:
- Added an option to automatically cleanup old data from the database
Modifications:
- Fixed an error when closing tickets if dashboard is installed and no transcript folder was found
- Fixed an issue causing panel command to not work if footer text and icon was enabled in the config
- Fixed an issue causing 0 ratings to be counted
- Fixed "Cannot read properties of null (reading 'status')" error
- Fixed an issue causing crypto command to not work because of the API that converts crypto currency being down
- Fixed an issue causing users to be able to rate a ticket unlimited times
- Improved MongoDB connection errors with more details
Additions:
- The bot now uses MongoDB for database
- HTML ticket transcripts can now be viewed online if the dashboard is installed
- Added "View transcript" button instead of attaching transcript files if dashboard is installed
- Added a blacklist list command to view a list of all blacklisted users
- Added average completion time to the stats command
- Added instructions on how to update NodeJS version in the error message
- Added unique identifiers to all tickets in the database
- Added an option to send a notice in the ticket if the user created a ticket outside working hours
- Added more customization to the ticket panel embed in the config
- Added guildBanAdd, roleCreate, guildMemberAdd events for storing statistics
Modifications:
- Updated discord.js to v14.14.1
- Updated all npm packages
- Improved the suggestion system for increased efficiency
- Improved the handling of when a user leaves the server when they have an open ticket
- Improved the separate ticket review channel, allowing users to fully customize the appearance of the entire embed
- Improved the stats embed design
- Fixed an issue causing stripe invoices to be created as $0
- Fixed an issue causing you not be able to use decimal numbers when creating paypal/stripe invoices, (example: 5.99)
- Fixed an issue where the ticket close reason was incorrectly displaying as 'Closed automatically by alert command'
- Fixed a bug that inaccurately triggered the 'slash commands unavailable' error, now it shows the actual error
- Fixed some Unknown Interaction errors
- Fixed an issue causing 0 ratings to be counted
- Fixed an issue causing closedAt to sometimes not get updated in the database
- Tickets are now created AFTER ticket questions have been answered if questions are enabled
- Ticket question system has been recoded and is now more efficient and reliable
- Automatically update the status to "Closed" for tickets marked as "Open" in the database when the corresponding channel doesn't exist
- Suggestions now get deleted from the database when the message is deleted
- The bot now requires a NodeJS version of 18 or higher
- Revamped ticket review system code for increased efficiency and performance.
- Combined blacklist and unblacklist commands into a single 'blacklist' command
- Review embed now gets edited in the user's DM when they leave a review/rate a ticket, showing their review and rating
- Errors that occurs from addons are now more detailed
- Separated the function responsible for sending review and ticket close direct messages to users. - - The new function is more accessible across multiple files
- The alert command will now also DM the user and ask for reviews/display ticket information and transcript when it closes a ticket
- Optimized alert command
- All interactions are now logged in the logs.txt file
- closeUserID in the database now gets set to 'alert' if it was closed by alert command
Removals:
- Removed all unused locale messages from the config
- Removed Enmap package
Modifications:
- Fixed an issue causing ticket claiming to not work
- Fixed some errors with suggestions
- Fixed an error when a user without support roles tries to claim a ticket
- Fixed an issue causing users without support roles to be able to unclaim tickets
- Fixed some issues for checking if a user has a support role
- Fixed some errors with ticket reviews
- Fixed some issues with generating transcripts from the alert command
- Fixed an issue causing ticket question answers to not display anything if empty
- We've enhanced error handling by automating the upload of the 'logs.txt' file to our paste server. This means you can easily share the link with us when creating a support ticket for quick review.
Additions:
- Added working hours system (configurable)
- Added an option to automatically create threads for each suggestion, to allow users to discuss them
- Added a default max character length for ticket question modals to prevent errors
- Added {closedAt} variable to CloseEmbedMsg in the config
- Added {createdAt} variable to TicketMessage to get to get when the ticket was created using Discord timestamps
- Added more customization for the help command in the config
- Added a note to the ticket close log if the ticket was closed using the alert command
- Added locale configuration for the new ticket question system
- Added config error checking for more than 5 questions per category
- Added config error checking for invalid emojis
- Added {workingHours-startTime} and {workingHours-endTime} variables to PanelMessage in the config
Modifications:
- Updated the crypto command to include an option to directly input the wallet address instead of relying solely on the config file. If no wallet address is specified within the command, it will automatically retrieve the address from the config file
- Optimized the code for getting average review rating
- Optimized the code for checking for config errors
- Optimized the code for editing channel permissions
- Optimized and improved the PayPal invoice payment detection
- Improved the embed design for ticket questions
- Improved the help command, Disabled commands will no longer be listed
- PayPal and Stripe invoice commands has been combined into one /invoice command
- The alert command now supports days, weeks, months, minutes, seconds, and hours, instead of only hours
- The alert command now uses Discord timestamps
- Ticket cooldown messages now use Discord timestamps, instead of a custom made function
- All addons loaded will now be logged to the terminal
- Changed the default embed color
- Changed the default ticket panel image
- The codebase is now more scalable and adaptable to future updates
Removals:
- Removed the duration function
- Removed all {user-tag} variables from the config, and replaced them with {username} variable
Additions:
- Added a question system with modals (Automatically ask users questions when they create a ticket, configurable per category)
- Added an option to DM the user that their ticket will be closed when the alert command is used in a ticket
- Added an option to show statistics in the terminal when the bot starts
- Added first time start message
- Added support for new discord usernames (without discriminator)
- Added an option to add descriptions to paypal invoices in the config, to add for example your Terms of Service
- Added more information on why a license key is invalid
- Added an option to require a specific role to open a ticket in a specific category
Modifications:
- Updated discord.js to v14.11.0
- Updated all npm packages
- Optimized and cleaned up all code for optimal performance and increased efficiency
- Improved license checking, it should be more reliable now
- Improved the logs file to make it easier for us to provide support
- Fixed "channel.isTextBased is not a function" error
- Fixed an issue causing Used disallowed intents error to not be caught
- Fixed an error if there only was 1 bot activity set in the config
- Fixed an issue causing invalid Guild IDs to count towards license system server limit
Removals:
- Removed TicketCloseReason
- Removed message commands
- Removed Prefix, MessageCommands, and SlashCommands options from the config
- Updated to the new licensing system
- Fixed an issue causing "Deleting ticket in" message to not be sent
- Fixed some issues with closing tickets
- Removed OwnerID from the config
- Fixed issues with ticket closing
- Removed close confirmation
Locale section in the config has been updated!
The config has not been updated.
Additions:
- Added the time an invoice was paid (using discord timestamps)
Modifications:
- Updated discord.js to v14.7.1
- Fixed deprecation warning
- Fixed an issue causing TicketCloseReason to not work
- Fixed an issue causing PayPal invoices to be set to paid when it was unpaid
- Fixed an error when invoices were paid
Removals:
- None
