1 | function loadFunctionOnInput(sID) |
2 | local env = {}
|
3 | setmetatable(env, {__index=function(o, k) return _G[k] end })
|
4 | return assert(loadSnippet(sID, env)) |
5 | end |
6 | |
7 | sixtyone = loadFunctionOnInput("#61")
|
8 | |
9 | assert(lines) |
10 | |
11 | results = {}
|
12 | for _, l in ipairs(lines) do |
13 | if not l.who:lower():find("^computer") then
|
14 | input = l.text |
15 | print('Processing input: '..input)
|
16 | local ok, result = pcall(sixtyone) |
17 | if ok and result then |
18 | print('Result: '..result)
|
19 | table.insert(results, result) |
20 | end |
21 | end |
22 | end |
23 | |
24 | return table.concat(results, " ") |
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
2 comment(s) hidden. show
| Recognizer | Recognition Result | Visualize | Recalc |
|---|---|---|---|
| #308 | 567 | [visualize] |
| Snippet ID: | #66 |
| Snippet name: | Wrapper for iterating chat lines |
| Eternal ID of this version: | #66/1 |
| Text MD5: | 3df926e855e1f8cb3d2c2992bb776b39 |
| Author: | stefan |
| Category: | wrappers |
| Type: | Lua code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2013-12-31 20:50:03 |
| Source code size: | 567 bytes / 24 lines |
| Pitched / IR pitched: | Yes / Yes |
| Views / Downloads: | 2470 / 635 |
| Referenced in: | [show references] |