#Anyone Help with booster rewards bot skript

1 messages · Page 1 of 1 (latest)

compact hornet
#

Debug it

compact hornet
#

make sure all the variables are set to the correct values by sending them to console

#

does send "&eYou have claimed your booster rewards!" work?

#

does the message appear when you run the command?

#

That means that {BoosterClaim::%player's uuid%} is not set properly

#

What is {linkedGeneral::*}?

#

Is this the full script?

#

May I see it?

#

Who is the {_m} member in the first script? Shouldnt you be checking if the looped person has {_role}, not a set user?

#

ah mb

#

Replace the boosterKeys() function with this and send a screenshot of what happens in chat

function boosterKeys():
    set {_role} to guild boost role of guild with id "1020042852203495518" 
    make embed:
        set embed color of embed to purple
        set title of embed to "**BOOSTER REWARDS**"
        set footer of embed to "Occurs every 5 days"
        set description of embed to "You have been awarded **2 Booster Keys!**%nl%%nl%Claim your keys in-game using the command:%nl%**/boosterclaim**"
        post last embed to text channel with id "1152376512239112292"
    post mention tag of {_role} to text channel with id "1152376512239112292"
    loop indexes of {linkedGeneral::*}:
        set {_m} to member with id loop-value from guild with id "1019937710317785119"
        if {_m} is a member:
            if {_m} has discord role {_role}:
                loop indexes of {linkedGeneral::%loop-value%::*}:
                    broadcast "[DEBUG] Looping index: %loop-value-2%"
                    if {BoosterClaim::%loop-value-2%} is set:
                        broadcast "[DEBUG] Adding 1 to {BoosterClaim::%loop-value-2%}"
                        add 1 to {BoosterClaim::%loop-value-2%}
                    else:
                        broadcast "[DEBUG] Setting {BoosterClaim::%loop-value-2%} to 2"
                        set {BoosterClaim::%loop-value-2%} to 2
            else:
                broadcast "[DEBUG] {_m} does not have the booster role!"
        else:
            broadcast "[DEBUG] {_m} is not a member!"
#

after running the forceBooster

#

what happens in chat

#

only replace the boosterKeys function

#

yes

compact hornet
#

It is in plain English

#

You put a player into the booster keys function

#

The function doesn’t have a player input

#

Yes

#

only one of them should pop up…

#

Uhh

#

Gimme some time to think about it

compact hornet
#

Ah I see now

#

I’m brain dead rn srry

#

So 5 of the entries in the loop are not members apparently

#

Maybe they left the server?

#

Are you sure the role id is correct and each BoosterClaim entry has a secondary list?

compact hornet
#

Make sure your booster role ID is correct

#

When you loop over {linkedGeneral::%loop-value%::*}, it should be broadcasting the values in chat

jagged gulch
#

Yo

#

Is it Disky?