#Author mlodydeziom #Version: 1.0 #Potrzebne dodatki: Vixio 1.1.5 #-------------------------(nie edytować!) variables: {discord::bot_name} = "" {discord::logs_info} = "" {discord::logs_channel} = "" #-------------------------- #---Logowanie do bota z użyciem tokena--- on load: login to user with token "TOKEN" with name "Logi" #--------------------------------------- #---Komendy do skonfigurowania bota--- command /logs [] [] []: permission: logs.conf permission message: &c* Brak permisji! &8(logs.conf) trigger: if arg 1 is not set: send "&cPoprawne użycie: /logs " if arg 1 is "info": if arg 2 is not set: send "&cPoprawne użycie: /logs info " stop if arg 3 is not set: send "&cPoprawne użycie: /logs info " stop else: set {discord::logs_info} to "%arg-2%" set {discord::bot_name} to "%arg-3%" send "&aUstawiono pomyślnie" send message "Zostałem poprawnie skonfigurowany przez **%player%**" to channel "%{discord::logs_info}%" as bot "%{discord::bot_name}%" if arg 1 is "config": if arg 2 is not set: send "&cPoprawne użycie: /logs config " stop if arg 3 is not set: send "&cPoprawne użycie: /logs config " stop else: set {discord::logs_channel} to "%arg-2%" set {discord::bot_name} to "%arg-3%" send "&aPoprawnie skonfigurowano: ID kanału: %{discord::logs_channel}% %nl%Nazwa bota: %{discord::bot_name}%" #------------------------------------- #----------core------------------- on chat: send message "Gracz o nicku **%player%** wysłał wiadomość o treści: **%message%**" to channel "%{discord::logs_channel}%" as bot "%{discord::bot_name}%" #----------------------------------