want("#139") -- match
want("#134") -- clockplus
fromSystem("clocktime")
mins = match(input, "+<number>")
if mins ~= nil then
time = clocktime("x:xx")
lentime = #time
mins = tonumber(mins)
-- Note: it seems that exceptions (e.g. attempt to call nil)
-- in return statements are not reported properly. They show up
-- as appearing in "loader:34".
futuretime = clockplus(time, mins)
log(futuretime)
return futuretime
endsee #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: | 1432 / 396 |
| Referenced in: | #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |