#My discord linking method says the code is wrong even though it is right.

1 messages · Page 1 of 1 (latest)

lilac tendon
#

this is the current code.

viral snow
#

do you have the needed add-ons

#

i can't look at code rn, but base skript can't connect to discord

narrow drum
#

Yup

#

Skript can't be connected to discord buddy

#

Use DiscotfSrv plugin

lofty pier
#

Using disky

lilac tendon
# viral snow do you have the needed add-ons

Yeah I am using Skript, Disky, & SkBee, the only needed ones. There are no errors by the way, it works to click on the button sent from the .sendembed button but it says the code is incorrect even though it is the right code & my the skript code looks good to me & to debug I also made it broadcast the code to see if it wasn't set but it is.

lilac tendon
# narrow drum Use DiscotfSrv plugin

I know about DiscordSRV, I used to use it. However discord & disky allows for more availability & easy way to access code since it is with skript not java.

viral snow
#

with the addons

#

did you not read what I said

#

I recommend adding a if here

#

but yeah, idk enough about disky for this

lofty pier
#

disky is buggy

#

You could do one using skreflect but you would need to know the basics of java

lilac tendon
#

ahh sorry for pinging you

lilac tendon
# viral snow did you not read what I said

Oh yeah sorry, the last section is

    if event-string = "verification":
        broadcast "&7The code is &a%{codeinfo}%&8."
        set {codeinfo2} to value of text input with id "code"
        if {code::*} does not contain {codeinfo2}:
            reply with hidden "Invalid Verification Code! Type **/discord link** ingame to generate yours."
            stop
        loop {code::*}:
            loop-value = {codeinfo2}
            set {_uuid} to loop-index
        delete {code::%{_uuid}%}
        set {discord::%{_uuid}%} to discord id of event-user
        reply with hidden "Account successfully linked with: **%{_uuid} parsed as offline player%**"
        send formatted "{@prefix} &7Your account is now linked with &9%event-member% &8[<cmd:/discord unlink><ttp:&cClick to unlink your account>&cUnlink<reset>&8]" to {_uuid} parsed as offline player
        syncAccount({_uuid} parsed as offline player)```
viral snow
#

was talking to the guy

#

I don't quite know disky, I've never used it

viral snow
narrow drum
#

Oh

#

I didn't knew we can do it tbh

viral snow
#

this means it will only be remembered in that code block

#

once it's done, the var is deleted

narrow drum
#

Oh

viral snow
#

so it depends if you need that variable somewhere else

narrow drum
#

I ain't very good with skript I am just 1 month experience yk

viral snow
#

ngl u code looks neat

narrow drum
#

...

#

Idk what to say lol

#

I am speech less xD

#

BTW Toni

#

Can u just provide me docs for like cool down things??
I am making a fortune skript

viral snow
#

cooldown?
there's a few ways, but I've never used docs for that

#

there's cooldown: time, for commands

#

you can also look at the difference between a %now% variable saved at last usage and compare to now

lilac tendon
fervent flicker
dim iris
#

atleast for the newest skript

lilac tendon
#

Oh okay thanks, I have 2.7 skript since the newest one had issues for me

dim iris
#

Do newest with skdisky beta