Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local a = require("component")
- local b = a.chat_box
- local e = require("event")
- local g = a.gpu
- local ss = require("term")
- ss.clear()
- g.setResolution(50,20)
- --Сюда админов надо добавить крч
- local b = {
- ""
- ""
- }
- while true do
- local _, add, nick, msg = e.pull("chat_message")
- for i = 1,#b do if ( nick ~= b[i] ) then
- g.setForeground(0x00D600)
- print(""..nick.." wrote:")
- g.setForeground(0xFFB600)
- print(""..msg.."")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement