local md5 = require("md5").hash local p = peripheral.find"manipulator" assert(p and p.hasModule"plethora:chat") local m = peripheral.wrap"monitor" assert(m) local function p(...) term.redirect(m) print(...) term.redirect(term.native()) end while true do local _,user,msg = os.pullEvent"chat_message" local h = md5(msg) p("<"..user.."> ["..h.."] "..msg) end