plugins/eliza.lua

changeset 162
dcb103aca564
parent 157
6fb39f738dd2
child 163
999573fb51ab
equal deleted inserted replaced
161:c4df517edbc1 162:dcb103aca564
143 user = string.sub(user, 8) 143 user = string.sub(user, 8)
144 end 144 end
145 user = " "..user.." " 145 user = " "..user.." "
146 -- process input, print reply 146 -- process input, print reply
147 processInput() 147 processInput()
148 response = response.."\n"
149 return response 148 return response
150 end 149 end
151 150
152 function riddim.plugins.eliza(bot) 151 function riddim.plugins.eliza(bot)
153 bot:hook("message", function (event) 152 bot:hook("message", function (event)

mercurial