1 | want("#139") -- match
|
2 | want("#134") -- clockplus
|
3 | fromSystem("clocktime")
|
4 | |
5 | mins = match(input, "+<number>") |
6 | if mins ~= nil then |
7 | time = clocktime("x:xx")
|
8 | lentime = #time |
9 | mins = tonumber(mins) |
10 | |
11 | -- Note: it seems that exceptions (e.g. attempt to call nil) |
12 | -- in return statements are not reported properly. They show up |
13 | -- as appearing in "loader:34". |
14 | |
15 | futuretime = clockplus(time, mins) |
16 | log(futuretime) |
17 | return futuretime |
18 | end |
see #131 Changed type to exclude from chat bot list
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
No comments. add comment
| Recognizer | Recognition Result | Visualize | Recalc |
|---|---|---|---|
| #308 | javax.imageio.IIOException: Can't get input stream from URL! | [visualize] |
| Snippet ID: | #133 |
| Snippet name: | +15 (pharmacokinetics t calculator) |
| Eternal ID of this version: | #133/1 |
| Text MD5: | e0a524ae5fd34d82b4620eea30578030 |
| Author: | stefan |
| Category: | |
| Type: | Lua code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-03-01 16:10:24 |
| Source code size: | 457 bytes / 18 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1467 / 403 |
| Referenced in: | [show references] |