Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- --- Created by yannb.
- --- DateTime: 22/10/2021 02:36
- ---
- local interface = peripheral.wrap("back")
- local canvas = interface.canvas()
- local text = canvas.addText({ x = 5, y = 5 }, "KPW OS BOOTING / 0%")
- local rect = canvas.addRectangle(0, 0, 100, 100, 0xFF34e8eb)
- local progress = 0
- local chat = peripheral.wrap("back")
- local afk = false
- rect.setSize(250, 30)
- rect.setAlpha(100)
- text.setScale(3)
- while true do
- progress = progress + 1
- text.setText("KPW OS BOOTING / " .. progress .. "%")
- sleep(0.1)
- end
- while true do
- local _, player, message, uuid = os.pullEvent("chat_message")
- if message:find("[Yy][aรค]nn") and afk then
- chat.say("Yann ist gerade AFK, hier ist le Bot der antwortet")
- chat.say(player)
- elseif uuid == "cc05c242-fc7b-4813-b568-3f0fe94e9b18" and message:find("afk") then
- afk = true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement