Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ticketing tool replacement #88

Merged
merged 8 commits into from
Nov 24, 2024
Merged

Add ticketing tool replacement #88

merged 8 commits into from
Nov 24, 2024

Conversation

vcarl
Copy link
Member

@vcarl vcarl commented Nov 19, 2024

This will close #59 and let us stop using the kinda-shitty Ticket Tool that's super complicated to set up for no benefit to us.

At time of opening this still needs the actual "create a thread" behavior to be implemented. Draft PR includes setup work to enable webhooks and long-lived message components.

@vcarl vcarl marked this pull request as draft November 19, 2024 21:05
Copy link

what-the-diff bot commented Nov 19, 2024

PR Summary

  • Integration of Express Application Type
    The tech team has included an Express application module into the deployCommands.server.ts file. Express application aids in setting up the server that hosts our application.

  • Enhancements in registerCommand function
    The registerCommand function, which plays a key role in operation and recognition of commands, has been updated. It now utilizes an 'express' parameter and contains new set of instructions that allows it to set up a channel for Discord commands that need a web server.

  • Simplification of Command Registrations
    There have been changes in the gateway.ts file that removed direct registration of command modules. This change aids in simplifying the program's initial setup process.

  • Inclusion of Webhook Handling
    A new route has been added in index.ts file that supports the validation of Discord webhooks along with processing of different event types.

  • Registration of Multiple Commands
    The improved registerCommand function now includes the registration of numerous commands such as convene, setup, report, track, and setupTicket present in index.ts.

  • Typing implementation for Webserver Commands
    An optional 'webserver' field was added to commands like MessageContextCommand, UserContextCommand, and SlashCommand in discord.ts to bolster application's handling of command types.

  • Minor Adjustment of Database Query
    A small modification was made in guilds.server.ts file to alter how we fetch settings from the database.

  • Updates on Dependencies
    The dependencies have been updated with the addition of body-parser and discord-interactions packages to both package.json and package-lock.json files. These new utilities will improve application's request handling and interaction with Discord's API respectively.

@vcarl
Copy link
Member Author

vcarl commented Nov 21, 2024

Closer, not fully happy with it tho. I think I'm going to recreate the current modal behavior to prompt people to send a first message before pinging moderator

Screenshot 2024-11-21 at 12 50 06 AM

@vcarl vcarl marked this pull request as ready for review November 21, 2024 21:51
@vcarl
Copy link
Member Author

vcarl commented Nov 21, 2024

Much better

Screen.Recording.2024-11-21.at.4.44.30.PM.mov

@vcarl vcarl merged commit 9dc2310 into main Nov 24, 2024
5 checks passed
@vcarl vcarl deleted the vc-ticketing branch November 24, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Mod message" through private threads
1 participant