Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local computer = require("computer")
- local term = require("term")
- local component = require("component")
- local sides = require("sides")
- local cb = component.chat_box
- local gpu = component.gpu
- local g = component.gpu
- local w, h = gpu.maxResolution()
- local redstone = component.redstone
- local redstan = component.redstone.setOutput
- local ravno = "═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════"
- local event = require("event")
- cb.setName("§fL§7")
- term.clear()
- print("Запуск программы...")
- os.sleep(0.5)
- print("Подготовка библиотек...")
- os.sleep(0.5)
- local SIRI = "§8[§9Бункер§8] §dSiri§f: "
- function screen()
- g.fill(1, 1, w, h, " ")
- g.setResolution(w/3, h/3)
- gpu.setBackground(0x130049)
- gpu.setForeground(0xAB00B4)
- term.clear()
- gpu.set(1,1,ravno)
- gpu.set(1,16,ravno)
- gpu.fill(53,1,1,50,"║")
- gpu.fill(1,1,1,50,"║")
- g.setForeground(0x00FF00)
- term.setCursor(1, 1)
- g.set(20,3,"► Бункер ")
- g.set(8,5,"► На основе Event.pull технологии! ツ")
- g.set(5,7,"Секретные команды.")
- g.set(5,9,"Помощница SIRI")
- g.set(14,15," By DestapTM для /warp Лkaluga")
- end
- while true do
- print("Hello")
- screen()
- type, address, name, message = event.pull("chat_message")
- print( message)
- ---------------------------------------------------------
- if name == "DestapTM" or name == "SilverGamers" then
- end
- if message == "Привет Siri" then
- component.chat_box.say(SIRI.."Здравствуйте!")
- end
- if message == "Siri Ты можешь открыть" then
- component.chat_box.say(SIRI.."Что открыть?")
- end
- if message == "Siri Как меня зовут?" then
- component.chat_box.say(SIRI.."DestapTM")
- end
- if message == "Технический отдел" then
- component.redstone.setOutput(4, 0)
- component.chat_box.say(SIRI.."Хорошо Открываю Технический отдел")
- end
- if message == "Закрой Технический отдел" then
- component.chat_box.say(SIRI.."Хорошо Закрываю Технический отдел")
- component.redstone.setOutput(4,255)
- end
- if message == "Бункер" then
- component.chat_box.say(SIRI.."Хорошо Открываю Бункер")
- component.redstone.setOutput(2,0)
- end
- if message == "Закрой Бункер" then
- component.chat_box.say(SIRI.."Хорошо Закрываю Бункер")
- component.redstone.setOutput(2,255)
- end
- if message == "Энергитический отдел" then
- component.chat_box.say(SIRI.."Хорошо Открываю Энергитический отдел")
- component.redstone.setOutput(5, 0)
- end
- if message == "Закрой Энергитический отдел" then
- component.chat_box.say(SIRI.."Хорошо Закрываю Энергитический отдел")
- component.redstone.setOutput(5,255)
- end
- if message == "Свое сердце" then
- component.chat_box.say(SIRI.."Слушаюсь Хозяйн :D")
- component.redstone.setOutput(3,0)
- end
- if message == "Закрой Свое сердце" then
- component.chat_box.say(SIRI.."Слушаюсь Хозяйн :D")
- component.redstone.setOutput(3,255)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement