#author mlodydeziom #ver 1.5 #potrzebne dodatki: Vixio 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 "Logs" on stop: logout of bot "Logs" #--------------------------------------- #---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}%" on join: send message "Gracz **%player%** wszedł na serwer." to channel "%{discord::logs_channel}%" as bot "%{discord::bot_name}%" send message "```Informacje o graczu: %nl%Nick: **%player%**%nl%Adres IP: **%player's ip%**```" to channel "%{discord::logs_channel}%" as bot "%{discord::bot_name}%" on quit: send message "Gracz **%player%** wyszedł z serwera." to channel "%{discord::logs_channel}%" as bot "%{discord::bot_name}%" send message "```Informacje o graczu: %nl%Nick: **%player%**%nl%Adres IP: **%player's ip%**```" to channel "%{discord::logs_channel}%" as bot "%{discord::bot_name}%" on private message sent to "Logs": reply with "Cześć, nie posiadam takiej funkcji aby z tobą pisać :cry: - ale jeśli chcesz coś zaproponować to napisz na tego discorda: https://discord.gg/BmVa8w" send message "Gracz **%discord name of event-user%** napisał do mnie prywatną wiadomość! :smile:" to channel "%{discord::logs_channel}%" as bot "%{discord::bot_name}%" on death: if attacker is a player: send message "Gracz **%victim%** zginął przez **%attacker%**" to channel "%{discord::logs_channel}%" as bot "%{discord::bot_name}%" else: send message "Gracz **%victim%** zginął przez upadek z dużej wysokości lub został zabity przez jakiegoś" to channel "%{discord::logs_channel}%" as bot "%{discord::bot_name}%" on respawn: send message "Gracz **%player%** odrodził się." to channel "%{discord::logs_channel}%" as bot "%{discord::bot_name}%"