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

Automatic Rune/Key HC that refreshes itself every ~30 mins #251

Open
sjkd23 opened this issue Nov 4, 2022 · 4 comments
Open

Automatic Rune/Key HC that refreshes itself every ~30 mins #251

sjkd23 opened this issue Nov 4, 2022 · 4 comments
Labels
c-raid Category: Raid-related (AFK checks, headcounts) it-enhancement Issue Type: Enhancement (new feature or request) s-hold Status: This issue should not be worked on now.

Comments

@sjkd23
Copy link
Contributor

sjkd23 commented Nov 4, 2022

We want to add an automatic headcount for runes that raiders can react to, so that RLs can see if/how many runes they have without even putting up an HC of their own.

  • Raiders can react to it in the AFK-checks channel
  • Who/how many reacts goes in raid-bot-commands, so only staff can see if we have any reacts
  • The reacts are removed every ~30 minutes, since we don't expect raiders to react and then be willing to pop an hour later
  • We want it for runes, but could be for any HC (so other discords might use it aswell)

This will hopefully help our RLs put up more runs, since they wont have to commit to a headcount and then risk having to abort it.

@ewang2002 ewang2002 added it-enhancement Issue Type: Enhancement (new feature or request) c-raid Category: Raid-related (AFK checks, headcounts) s-hold Status: This issue should not be worked on now. labels Nov 4, 2022
@dmansdman dmansdman assigned dmansdman and unassigned dmansdman Dec 15, 2022
@dmansdman
Copy link
Contributor

has hold flag? Will hold off until no longer on hold.

@dmansdman
Copy link
Contributor

Reaction Poll

@dmansdman
Copy link
Contributor

image

@dmansdman
Copy link
Contributor

/*
reactionmanager

reactions: list of reactions
lastResetTime: time of last reset
message: the message containing the embed


What happens is:

when bot starts (or if we have a command)
send first message with embed
add reactions and start the collectors 
run the update message timer thing

when times out:
stop the collectors
delete the message
clear the data

resend start command


updateReactionMessage(){

    if(currentTime > lastResetTime + 15mins){
        stop listeners
        empty reactions list
        delete Message
        resend it
    }

    embed = getReactionsEmbed()
    update message with the new embed
    call itself after 60s
}

 getReactionsEmbed(){

    load the list of reactions
    format an embed based on these (number of each rune type, total number of keys)
    return the embed
 }

 reactionsCollector(){

    listens to the buttons on the message
    depending on which button was pressed, do:
        add reaction
        send message
        if its key, do more stuff
        if all rune, ping

 }

 Look in HeadcountInstance for how collectors are started and stopped
 in around line 1000


*/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-raid Category: Raid-related (AFK checks, headcounts) it-enhancement Issue Type: Enhancement (new feature or request) s-hold Status: This issue should not be worked on now.
Projects
None yet
Development

No branches or pull requests

3 participants