Update shipcert queue command for flavortown! (#144)

* Added shipwrights macro

* fixes ig idk?

* renamed class for consistency

* reordered imports

* removed extra space

* Update README.md

* Adjust grammar in ?shipwrights response

* Remove spaces next to newlines

* Updated ?shipcertqueue to be ?shipqueue and added it to flavortown!

* fixed var type and capitalization of program now

* new line at the end of flavortown.py

* run pre-commit

* Add old macro name as an alias

* one more alias. just one more alias. okay? okay.

* Make types consistent again

* Fix the default value

---------

Co-authored-by: MMK21Hub <50421330+MMK21Hub@users.noreply.github.com>
This commit is contained in:
Saleh 2026-01-16 22:10:08 +02:00 committed by GitHub
parent 2d7d0a03f0
commit cfbf0dc08f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -6,7 +6,8 @@ from nephthys.utils.ticket_methods import reply_to_ticket
class ShipCertQueue(Macro):
name = "shipcertqueue"
name = "shipqueue"
aliases = ["shipcert", "shipcertqueue"]
async def run(self, ticket, helper, **kwargs):
"""

View file

@ -97,7 +97,7 @@ class Transcript(BaseModel):
ship_cert_queue_macro: str | None = Field(
default=None,
description="Message to be sent when the ship cert queue macro is used (only applies to SoM)",
description="Message to be sent when the ship cert queue macro is used (only applies to Flavortown and SoM)",
)
not_allowed_channel: str = Field(

View file

@ -50,3 +50,7 @@ _I've marked this thread as resolved_
"""
not_allowed_channel: str = f"hey, it looks like you're not supposed to be in that channel, pls talk to <@{program_owner}> if that's wrong"
ship_cert_queue_macro: str | None = (
"Hey (user), we currently have a backlog of projects waiting to be certified. Please be patient.\n\n*You can keep track of the queue <https://us.review.hackclub.com/queue | here>!*"
)