Open
Conversation
added 4 commits
February 5, 2024 20:28
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
added 5 commits
February 10, 2024 14:31
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 |
added 6 commits
February 12, 2024 15:52
- 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.
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)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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