-
Notifications
You must be signed in to change notification settings - Fork 0
Husky/headcount rework #711
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
Open
ghost
wants to merge
15
commits into
master
Choose a base branch
from
husky/headcount-rework
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
templates.js - in case an emoji is not found (mostly for testing bots not in all emoji servers) headcount.js - reworked execute portion, now is a slash command as well As discussed with Sauron, will be adding headcount timeout & adding a commands channel panel for timeoutable headcounts
2 tasks
headcounts.js - Removed mutex and instead each headcount has its own timeout. - Uses local cache - redis used to load headcounts on restart - Warns user about putting up extra headcounts depending on active in channel/by user/by run - moved module.exports to the bottom afkCheck.js - Added JSDoc typings for intellisense afkTemplate.js - Added JSDoc typings for intellisense index.js - No longer need to pass bot to handleHeadcountRow package.json - Removed async-mutex
- Forgot to add BodyEmbed typing - Changed confirm send headcount embed color to run color - Make sure to explicitly remove components on no-timeout panel
Author
|
This is now fully ready for review after considerations mentioned in #dev-lounge |
- Removed usage of `handleHeadcountRow` in index - Utilize `createReactionRow` to handle button interactions
- Added check for any afks in status channel - Slight formatting changes in confirmation - made afkChecks.timerSecondsRemaining public for headcount confirmations
Contributor
Huntifer-RotMG
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a detailed review, will try and write more later but I would strongly prefer if we didn't add hundreds of lines of (questionably valid JSDoc)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
A fix for something that does not work as intended
Change
A modification to something that exists
Feature
A new piece of functionality that has been introduced
Lost Halls
This relates to the Discord Guild named "Lost Halls"
Quality of Life
An improvement of something that exists
Shatters/Moonlight
This relates to the Discord Guild named "Shatters/Moonlight"
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.
ViBot
Changelog
Features
Complete Headcount rewrite
/hc <type> [length] [duration]SecondsMinutesandHours, also accepts partial text;hc vsince cannot clarify when it should stop sending items over;afk <type> <location>Changes
.eslintignore
commands/headcount.jsbotSetup.js
commands/afkCheck.js
afkCheckinmodule.exportsleader = message.memberargument toafkCheck.ctorto provide a differentGuildMemberthan what's attached to themessageargument for headcount conversion.panelReplyparameter toafkCheck.startto provide a message to reply to instead of only sending it in commands channel (for headcount conversion)replyToparameter forafkCheck.sendInitialStatusMessageto provide a message to reply to instead of only sending it in status channel (for headcount conversion)commands/afkTemplate.js
#validateTemplateEmoteand#processReactsto consider if the template provided has previously ran#processReacts(this happens when loading one from redis)AfkTemplate.getRandomThumbnail()to return a random thumbnail from the bodyAfkTemplate.#templatecommands/templates.js
bot.storedEmojis[...].textin case the emoji wasn't loadedindex.js
handleHeadcountRowifhandleReactionRowreturns false to check if it's a headcount reactioncommands/templates.js
commands/headcount.js
Bugs
Quality of Life
Examples
/hc 'Ocean Trench' 5 MinutesCommands Channel panel



Status Channel message
Aborted Headcount panel
/hc 'v'- headcount with no timeout givenConfirmation if existing headcount from leader




Cancel confirmation
Commands Channel panel
Status Channel message
*hc so 2 mConverted Headcount asks for location



Headcount panel & afk panel
Raid status channel
*hc v 2 mwith a void headcount + 1 in rsa and +1 in vet statuswith an active afk check