View difference between Paste ID: aTNLau77 and unnumVj4
SHOW: | | - or go back to the newest paste.
1-
local component = require("component")
1+
local component = require("component")
2-
local term = require("term")
2+
local term = require("term")
3-
local chatBox = component.chat
3+
local chatBox = component.chat
4-
local gpu = component.gpu
4+
local gpu = component.gpu
5-
--Настроечки
5+
--Настроечки
6-
chatBox.setDistance(100)
6+
chatBox.setDistance(100)
7-
7+
8-
--Задаем имя
8+
--Задаем имя
9-
gpu.setForeground(0x00FFFF)
9+
gpu.setForeground(0x00FFFF)
10-
print("Welcome to ChatBox! Please enter your name")
10+
print("Welcome to ChatBox! Please enter your name")
11-
name = term.read()
11+
name = term.read()
12-
chatBox.setName("§6" .. name)
12+
chatBox.setName("§6" .. name)
13-
13+
14-
gpu.setForeground(0xFFFF00)
14+
gpu.setForeground(0xFFFF00)
15-
print("Good. Now you can chat.")
15+
print("Good. Now you can chat.")
16-
16+
17-
while true do
17+
while true do
18-
msg = term.read()
18+
msg = term.read()
19-
chatBox.say("§9" .. msg)
19+
chatBox.say("§9" .. msg)
20-
20+
21
	end