Skip to content

Improve !verify-admin and patch !issue - #387

Merged
earlduque merged 2 commits into
ServiceNowDevProgram:mainfrom
SapphicFire:parser-changes
Oct 8, 2024
Merged

earlduque merged 2 commits into
ServiceNowDevProgram:mainfrom
SapphicFire:parser-changes

Conversation

@SapphicFire

Copy link
Copy Markdown
Contributor

Description

#328 called for improving the functionality of !verify-admin. In the current state, an admin must use this parser twice to verify a user and then set their message. This PR reworks the logic used to allow this to be done in a single call.

Resolves #328

This also includes a small fix to the !issue parser to ensure rich feedback is returned on issue creation.

Note on change

This change removes the prior functionality that allowed the user to toggle verification by calling !verify-admin username. It contains a message about calling the new help method, and additionally I will ask the admins to share this knowledge internally to minimize the impact of the 'breaking' change.

Usage

!verify-admin username [-v|-unv] [message]

Examples:

Verify and update message

!verify-admin @SapphicFire -v Hacktoberfest Contributor

Remove user verification

!verify-admin @SapphicFire -unv

Update message

!verify-admin @SapphicFire Hacktoberfest Moderator

It's so strange how providing the right parameter to send allows slackerbot to send the right thing
@earlduque
earlduque merged commit 1ec4cd9 into ServiceNowDevProgram:main Oct 8, 2024
@SapphicFire
SapphicFire deleted the parser-changes branch October 10, 2024 02:58
@SapphicFire SapphicFire mentioned this pull request Oct 25, 2024
6 tasks done
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.

Rework !verify-admin to allow single call for both toggle and description

2 participants