Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --orn code maked by morgaton on discord/morgatronday on pastebin. read bottem part for more info
- local perfix = "bot"
- local brakits = "[]"
- -- ^ [bot]
- local wc1 = "test1" -- word check 1
- local rs1 = "test1 check" -- responds 1
- -- ect
- local wc2 = "test2"
- local rs2 = "test2 check"
- local wc3 = "test3"
- local rs3 = "test3 check"
- local cb = peripheral.find("chatBox") -- looking for a chatBox™ defineing cb as the chatBox™ that we just found
- while(true)
- do
- local event, un, ms = os.pullEvent("chat") -- un = username. ms = message
- if ms == wc1
- then
- cb.sendMessage(rs1, perfix, brakits) -- gets all the shit and smashs it together
- elseif ms == wc2
- then
- cb.sendMessage(rs2, perfix, brakits)
- elseif ms == wc3
- then
- cb.sendMessage(rs3, perfix, brakits)
- end
- end
- -- feel free to edit or reupload my code just dont remove my thing at the top or credit me
- -- this was maked for cc: and ap on minecraft
Advertisement
Add Comment
Please, Sign In to add comment