vixio skript error

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ron_sa

Member
Feb 24, 2021
4
0
1
When I typed the !차단 command in Discord, the bot sends the same message twice.

I wonder why the bot sends messages twice instead of once

What should I do?



Code:
discord command !차단 [<text>] [<text>]:
    executable in: guild
    roles: 총 책임자, 서버_관리팀, 서버호스팅
    trigger:
        discord id of event-channel is "811096023942037525"
        if arg 1 is not set:
            send "사용법: !차단 <디스코드 유저 ID>  또는  !차단 <디스코드 유저 ID> [해제]" to event-channel with event-bot
            stop
        if arg 1 parsed as integer is not integer:
            send "디스코드 유저 ID를 입력해주세요! (디스코드 유저 ID를 보는 방법은  으로 !도움말 을 치시면 나옵니다!)" to event-channel with event-bot
            stop
        else if arg 2 is not set:
            if {차단유저::%arg 1%} is true:
                send "<@%arg 1%>님은 이미 차단되어 있습니다!" to event-channel with event-bot
            else:
                loop {인증유저id::*}:
                    if loop-value = arg 1:
                        delete {인증유저id::%loop-index%}
                        delete {인증유저::%loop-index%}
                        set {차단유저::%arg 1%} to true
                        send "<@%arg 1%>님을 차단하셨습니다." to event-channel with event-bot
                        stop
                send "<@%arg 1%> 이 유저는 존재하지 않습니다!" to event-channel with event-bot
        else if arg 2 is "해제":
            if {차단유저::%arg 1%} is not set:
                send "<@%arg 1%>님은 이미 차단되어 있지 않습니다!" to event-channel with event-bot
            else:
                delete {차단유저::%arg 1%}
                send "<@%arg 1%>님을 차단 해제하셨습니다." to event-channel with event-bot
 
hmm i dont use the discord addon but i don't see anything wrong. I think it may be the bots error or something and not the skript one
 
I’ve had this issue before but Im not sure if I remember the solution. I think it’s because you might have logged in your bot twice. Try to make sure there’s nothing in your code that logins the bot twice, then restart your server.
 
Status
Not open for further replies.